Total Complexity | 8 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
12 | class Audience implements JsonSerializable |
||
13 | { |
||
14 | /** @var string|null */ |
||
15 | protected $segmentId; |
||
16 | |||
17 | /** @var DateTime|null */ |
||
18 | protected $date; |
||
19 | |||
20 | /** @var int|null */ |
||
21 | protected $total; |
||
22 | |||
23 | public function getSegmentId(): ?string |
||
26 | } |
||
27 | |||
28 | public function setSegmentId(string $segmentId): void |
||
31 | } |
||
32 | |||
33 | public function getDate(): ?DateTime |
||
34 | { |
||
35 | return $this->date; |
||
36 | } |
||
37 | |||
38 | public function setDate(DateTime $date): void |
||
41 | } |
||
42 | |||
43 | public function getTotal(): ?int |
||
44 | { |
||
45 | return $this->total; |
||
46 | } |
||
47 | |||
48 | public function setTotal(int $total): void |
||
51 | } |
||
52 | |||
53 | public function jsonSerialize() |
||
64 |