Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class AbstractRoutePreUpdateEvent |
||
23 | { |
||
24 | /** |
||
25 | * @var RouteEntity Reference to treated entity instance. |
||
26 | */ |
||
27 | protected $route; |
||
28 | |||
29 | /** |
||
30 | * @var array Entity change set for preUpdate events. |
||
31 | */ |
||
32 | protected $entityChangeSet = []; |
||
33 | |||
34 | public function __construct(RouteEntity $route, array $entityChangeSet = []) |
||
35 | { |
||
36 | $this->route = $route; |
||
37 | $this->entityChangeSet = $entityChangeSet; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return RouteEntity |
||
42 | */ |
||
43 | public function getRoute(): RouteEntity |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return array Entity change set |
||
50 | */ |
||
51 | public function getEntityChangeSet(): array |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param array $changeSet Entity change set |
||
58 | */ |
||
59 | public function setEntityChangeSet(array $changeSet = []): void |
||
64 |