Total Complexity | 5 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class EventConfig implements EventConfigInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string event origin |
||
14 | */ |
||
15 | protected string $origin; |
||
16 | /** |
||
17 | * @var string|null event name |
||
18 | */ |
||
19 | protected ?string $name; |
||
20 | /** |
||
21 | * @var string[]|null event recipients |
||
22 | */ |
||
23 | protected ?array $recipients; |
||
24 | /** |
||
25 | * @var callable|null extra filter |
||
26 | */ |
||
27 | protected $extraFilter; |
||
28 | |||
29 | /** |
||
30 | * EventConfig constructor |
||
31 | * @param string $origin |
||
32 | * @param string|null $name |
||
33 | * @param string[] $recipients |
||
34 | * @param callable|null $extraFilter |
||
35 | */ |
||
36 | 11 | public function __construct( |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | 11 | public function getOrigin(): string |
|
52 | { |
||
53 | 11 | return $this->origin; |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritDoc} |
||
58 | */ |
||
59 | 11 | public function getName(): ?string |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritDoc} |
||
66 | */ |
||
67 | 11 | public function getRecipients(): ?array |
|
68 | { |
||
69 | 11 | return $this->recipients; |
|
70 | } |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | 11 | public function getExtraFilter(): ?callable |
|
78 | } |
||
79 | } |
||
80 |