1 | <?php |
||
9 | class CopyAwareEventStoreDecorator extends AbstractEventStoreDecorator |
||
10 | { |
||
11 | /** |
||
12 | * @inheritdoc |
||
13 | */ |
||
14 | public function load($id) |
||
18 | |||
19 | /** |
||
20 | * @param DomainEventStreamInterface $eventStream |
||
21 | * @return DomainEventStreamInterface |
||
22 | */ |
||
23 | private function loadCompleteStream(DomainEventStreamInterface $eventStream) |
||
40 | |||
41 | /** |
||
42 | * @param DomainMessage $message |
||
43 | * @return string |
||
44 | * |
||
45 | * @throws UnknownParentAggregateException |
||
46 | */ |
||
47 | private function identifyParent(DomainMessage $message) |
||
58 | |||
59 | /** |
||
60 | * @param DomainEventStreamInterface $eventStream |
||
61 | * @param int $playhead |
||
62 | * |
||
63 | * @return DomainMessage[] |
||
64 | */ |
||
65 | private function limitEventStreamToPlayhead(DomainEventStreamInterface $eventStream, $playhead) |
||
74 | } |
||
75 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.