Total Complexity | 11 |
Total Lines | 73 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
11 | class Agency implements JsonSerializable |
||
12 | { |
||
13 | /** @var string|null */ |
||
14 | protected $id; |
||
15 | |||
16 | /** @var string|null */ |
||
17 | protected $name; |
||
18 | |||
19 | /** @var int|null */ |
||
20 | protected $countryId; |
||
21 | |||
22 | /** @var bool */ |
||
23 | protected $active; |
||
24 | |||
25 | public function getId(): ?string |
||
26 | { |
||
27 | return $this->id; |
||
28 | } |
||
29 | |||
30 | public function setId(string $id): void |
||
31 | { |
||
32 | $this->id = $id; |
||
33 | } |
||
34 | |||
35 | public function getName(): ?string |
||
36 | { |
||
37 | return $this->name; |
||
38 | } |
||
39 | |||
40 | public function setName(string $name): void |
||
41 | { |
||
42 | $this->name = $name; |
||
43 | } |
||
44 | |||
45 | public function getCountryId(): ?int |
||
48 | } |
||
49 | |||
50 | public function setCountryId(int $countryId): void |
||
51 | { |
||
52 | $this->countryId = $countryId; |
||
53 | } |
||
54 | |||
55 | public function isActive(): ?bool |
||
58 | } |
||
59 | |||
60 | public function setActive(bool $active): void |
||
63 | } |
||
64 | |||
65 | public function jsonSerialize() |
||
66 | { |
||
88 |