Total Complexity | 7 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class BooktickerResponse extends AbstractResponse |
||
11 | { |
||
12 | /** |
||
13 | * Topic name |
||
14 | * @var string |
||
15 | */ |
||
16 | private string $topic; |
||
17 | |||
18 | /** |
||
19 | * The timestamp (ms) that message is sent out |
||
20 | * @var \DateTime $requestTimestamp |
||
21 | */ |
||
22 | private \DateTime $requestTimestamp; |
||
23 | |||
24 | /** |
||
25 | * Data type. snapshot |
||
26 | * @var string $type |
||
27 | */ |
||
28 | private string $type; |
||
29 | |||
30 | private EntityCollection $data; |
||
31 | |||
32 | |||
33 | public function __construct(array $data) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getTopic(): string |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return \DateTime |
||
63 | */ |
||
64 | public function getRequestTimestamp(): \DateTime |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getType(): string |
||
75 | } |
||
76 | |||
77 | public function getData(): array |
||
82 |