Total Complexity | 9 |
Total Lines | 71 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class EventConfig |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $command; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $type; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $class; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $params = []; |
||
31 | |||
32 | /** |
||
33 | * @param array $data |
||
34 | */ |
||
35 | public function __construct(array $data) |
||
48 | } |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return string|null |
||
53 | */ |
||
54 | public function getCommand(): ?string |
||
55 | { |
||
56 | return $this->command; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return string|null |
||
61 | */ |
||
62 | public function getType(): ?string |
||
63 | { |
||
64 | return $this->type; |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @return string|null |
||
69 | */ |
||
70 | public function getClass(): ?string |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @return array |
||
77 | */ |
||
78 | public function getParams(): array |
||
81 | } |
||
82 | } |
||
83 |