This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
/
FirstLastResolver.txt
60 lines (41 loc) · 1.75 KB
/
FirstLastResolver.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--------------------------------------------------------------------
Baleen\\Migrations\\Delta\\Delta\\Delta\\Collection\\Resolver\\FirstLastResolver
--------------------------------------------------------------------
.. php:namespace: Baleen\\Migrations\\Delta\\Delta\\Delta\\Collection\\Resolver
.. php:class:: FirstLastResolver
Class FirstLastResolver
.. php:method:: doResolve($alias, Collection $collection)
Resolves an alias into a Delta.
:type $alias: string
:param $alias:
:type $collection: Collection
:param $collection:
:returns: DeltaInterface|null
.. php:method:: __construct($cacheEnabled = true)
:type $cacheEnabled: bool
:param $cacheEnabled:
.. php:method:: resolve($alias, Collection $collection)
Resolves an alias into a Delta.
:type $alias: string
:param $alias:
:type $collection: Collection
:param $collection:
:returns: DeltaInterface|null
.. php:method:: cacheGet($alias, Collection $collection)
Gets an alias from the cache. Returns false if nothing could be found, a
Delta if the alias was previously
resolved to a version, and null if the alias couldn't be resolved in a
previous call.
:param $alias:
:type $collection: Collection
:param $collection:
:returns: bool|null|DeltaInterface
.. php:method:: cacheSet($alias, $collection, $result)
Saves the result of resolving an alias against a given collection into the
cache.
:param $alias:
:param $collection:
:param $result:
.. php:method:: clearCache(Collection $collection = null)
:type $collection: Collection
:param $collection: