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 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function delete($object) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getIdentifier($object) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function supports(string $class): bool |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function setParent($object, $parent) |
||
89 | |||
90 | private function dispatch(string $eventName, $object) |
||
94 | } |
||
95 |