1 | <?php |
||
11 | class CollectionsAgent implements AgentInterface |
||
12 | { |
||
13 | private $store; |
||
14 | |||
15 | public function __construct(Store $store) |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function supports(string $classFqn): bool |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function find($identifier, string $classFqn = null) |
||
48 | |||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function save($object) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function delete($object) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function query(Query $query): \Traversable |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getIdentifier($object) |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function setParent($object, $parent) |
||
102 | } |
||
103 |