1 | <?php |
||
17 | class EventManagerVariant implements VariantInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var EventManagerInterface |
||
21 | */ |
||
22 | private $eventManager; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $idenfier; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $eventName; |
||
33 | |||
34 | /** |
||
35 | * @var callable |
||
36 | */ |
||
37 | private $callback; |
||
38 | |||
39 | /** |
||
40 | * @var int |
||
41 | */ |
||
42 | private $priority; |
||
43 | |||
44 | public function __construct(EventManagerInterface $eventManager, $identifier, $eventName, $callback, $priority) |
||
52 | |||
53 | public function getEventManager() |
||
57 | |||
58 | public function getIdentifier() |
||
62 | |||
63 | public function getEventName() |
||
67 | |||
68 | public function getCallback() |
||
72 | |||
73 | public function getPriority() |
||
77 | |||
78 | public function run() |
||
82 | } |
||
83 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.