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