| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function handleRecursively(DomainEventInterface $event) |
||
| 27 | { |
||
| 28 | $this->handle($event); |
||
| 29 | |||
| 30 | foreach ($this->getChildEntities() as $entity) { |
||
| 31 | if ($this instanceof AggregateRootInterface) { |
||
| 32 | $entity->registerAggregateRoot($this); |
||
| 33 | } elseif ($this instanceof EntityInterface) { |
||
| 34 | $entity->registerAggregateRoot($this->{'aggregateRoot'}); |
||
| 35 | } |
||
| 36 | |||
| 37 | $entity->handleRecursively($event); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 64 |