Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 26.32% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | class TableMapDTO extends EventDTO |
||
11 | { |
||
12 | private $type = ConstEventsNames::TABLE_MAP; |
||
13 | private $tableMap; |
||
14 | |||
15 | 54 | public function __construct( |
|
16 | EventInfo $eventInfo, |
||
17 | TableMap $tableMap |
||
18 | ) { |
||
19 | 54 | parent::__construct($eventInfo); |
|
20 | |||
21 | 54 | $this->tableMap = $tableMap; |
|
22 | } |
||
23 | |||
24 | public function __toString(): string |
||
35 | } |
||
36 | |||
37 | 51 | public function getType(): string |
|
40 | } |
||
41 | |||
42 | #[\ReturnTypeWillChange] |
||
43 | public function jsonSerialize() |
||
44 | { |
||
45 | return get_object_vars($this); |
||
46 | } |
||
47 | |||
48 | public function getTableMap(): TableMap |
||
51 | } |
||
52 | } |
||
53 |