Total Complexity | 5 |
Total Lines | 67 |
Duplicated Lines | 0 % |
Coverage | 30% |
Changes | 0 |
1 | <?php |
||
13 | class TableMapDTO extends EventDTO |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $type = ConstEventsNames::TABLE_MAP; |
||
19 | /** |
||
20 | * @var TableMap |
||
21 | */ |
||
22 | private $tableMap; |
||
23 | |||
24 | /** |
||
25 | * TableMapDTO constructor. |
||
26 | * @param EventInfo $eventInfo |
||
27 | * @param TableMap $tableMap |
||
28 | */ |
||
29 | 52 | public function __construct( |
|
30 | EventInfo $eventInfo, |
||
31 | TableMap $tableMap |
||
32 | ) { |
||
33 | 52 | parent::__construct($eventInfo); |
|
34 | |||
35 | 52 | $this->tableMap = $tableMap; |
|
36 | 52 | } |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function __toString() |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | 50 | public function getType() |
|
58 | { |
||
59 | 50 | return $this->type; |
|
60 | } |
||
61 | |||
62 | /** |
||
63 | * Specify data which should be serialized to JSON |
||
64 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
65 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
66 | * which is a value of any type other than a resource. |
||
67 | * @since 5.4.0 |
||
68 | */ |
||
69 | public function jsonSerialize() |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * @return TableMap |
||
76 | */ |
||
77 | public function getTableMap() |
||
80 | } |
||
81 | } |