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 | public function __construct( |
||
37 | |||
38 | public function event() : string |
||
42 | |||
43 | public function listenerServiceId() : string |
||
47 | |||
48 | public function action() : string |
||
52 | |||
53 | public function priority() : int |
||
57 | |||
58 | /** |
||
59 | * @throws \InvalidArgumentException |
||
60 | */ |
||
61 | private function setEvent(string $event) : self |
||
70 | |||
71 | /** |
||
72 | * @throws \InvalidArgumentException |
||
73 | */ |
||
74 | private function setListenerServiceId(string $listenerServiceId) : self |
||
83 | |||
84 | /** |
||
85 | * @throws \InvalidArgumentException |
||
86 | * @throws \ReflectionException |
||
87 | */ |
||
88 | private function setAction(string $action) : self |
||
97 | |||
98 | /** |
||
99 | * @return static[] |
||
100 | * |
||
101 | * @throws \ReflectionException |
||
102 | * @throws \InvalidArgumentException |
||
103 | */ |
||
104 | public static function createFromConfigArray(array $configArray) : array |
||
119 | } |
||
120 |