| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class DeletedEntity implements HasEventName |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $mapper; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var EntityInterface |
||
| 20 | */ |
||
| 21 | private $entity; |
||
| 22 | |||
| 23 | public function __construct(string $mapper, EntityInterface $entity) |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getEntity(): EntityInterface |
||
| 30 | { |
||
| 31 | return $this->entity; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function setEntity(EntityInterface $entity) |
||
| 35 | { |
||
| 36 | $this->entity = $entity; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function eventName(): string |
||
| 42 | } |
||
| 43 | } |
||
| 44 |