1 | <?php |
||
8 | class LazyActionDispatcher implements ActionDispatcherInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var ActionDispatcherFactory |
||
12 | */ |
||
13 | private $actionDispatcherFactory; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $inspectionId; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $inspectionName; |
||
24 | |||
25 | public function __construct($inspectionId, $inspectionName, ActionDispatcherFactory $actionDispatcherFactory) |
||
31 | |||
32 | public function perform($entity) |
||
37 | |||
38 | public function performFromEvent(Event $event, $eventName) |
||
43 | |||
44 | /** |
||
45 | * Gets inspectionName |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getName() |
||
52 | |||
53 | /** |
||
54 | * Sets inspectionName |
||
55 | * @param string $inspectionName |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function setName($inspectionName) |
||
64 | |||
65 | /** |
||
66 | * Gets inspectionId |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getInspectionId() |
||
73 | |||
74 | /** |
||
75 | * Sets inspectionId |
||
76 | * @param string $inspectionId |
||
77 | * @return $this |
||
78 | */ |
||
79 | public function setInspectionId($inspectionId) |
||
85 | } |
||
86 |