1 | <?php |
||
9 | class EventDispatchingAgent implements AgentInterface |
||
10 | { |
||
11 | private $dispatcher; |
||
12 | private $agent; |
||
13 | |||
14 | public function __construct( |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function getCapabilities(): Capabilities |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function find($identifier, string $class = null) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function save($object) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function query(Query $query): \Traversable |
||
55 | |||
56 | public function queryCount(Query $query): int |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function delete($object) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getIdentifier($object) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function supports(string $class): bool |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function setParent($object, $parent) |
||
94 | |||
95 | private function dispatch(string $eventName, $object) |
||
99 | } |
||
100 |