1 | <?php |
||
7 | class EventListenerConfig |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $event; |
||
11 | |||
12 | /** @var string */ |
||
13 | private $listenerServiceId; |
||
14 | |||
15 | /** @var string */ |
||
16 | private $action; |
||
17 | |||
18 | /** @var int */ |
||
19 | private $priority; |
||
20 | |||
21 | /** |
||
22 | * @throws \ReflectionException |
||
23 | * @throws \InvalidArgumentException |
||
24 | */ |
||
25 | 4 | public function __construct( |
|
37 | |||
38 | 1 | public function event() : string |
|
42 | |||
43 | public function listenerServiceId() : string |
||
47 | |||
48 | 1 | public function action() : string |
|
52 | |||
53 | 1 | public function priority() : int |
|
57 | |||
58 | /** |
||
59 | * @throws \ReflectionException |
||
60 | * @throws \InvalidArgumentException |
||
61 | * |
||
62 | * @return static[] |
||
63 | */ |
||
64 | 1 | public static function createFromConfigArray(array $configArray) : array |
|
79 | |||
80 | /** |
||
81 | * @throws \InvalidArgumentException |
||
82 | */ |
||
83 | 4 | private function setEvent(string $event) : self |
|
92 | |||
93 | /** |
||
94 | * @throws \InvalidArgumentException |
||
95 | */ |
||
96 | 4 | private function setListenerServiceId(string $listenerServiceId) : self |
|
105 | |||
106 | /** |
||
107 | * @throws \InvalidArgumentException |
||
108 | * @throws \ReflectionException |
||
109 | */ |
||
110 | 4 | private function setAction(string $action) : self |
|
119 | } |
||
120 |