Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class CalculationRecipient |
||
17 | { |
||
18 | use ToArray; |
||
19 | |||
20 | private bool $privatePerson; |
||
21 | |||
22 | private ?CalculationAddressLocation $addressLocation = null; |
||
23 | |||
24 | private ?int $siteId = null; |
||
25 | |||
26 | private ?int $pickupOfficeId = null; |
||
27 | |||
28 | public function __construct( |
||
29 | bool $privatePerson, |
||
30 | ?int $pickupOfficeId = null, |
||
31 | ?CalculationAddressLocation $addressLocation = null |
||
32 | ) { |
||
33 | $this->privatePerson = $privatePerson; |
||
34 | $this->pickupOfficeId = $pickupOfficeId; |
||
35 | $this->addressLocation = $addressLocation; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param int|null $siteId |
||
40 | */ |
||
41 | public function setSiteId(?int $siteId): void |
||
42 | { |
||
43 | $this->siteId = $siteId; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return int|null |
||
48 | */ |
||
49 | public function getSiteId(): ?int |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param int|null $pickupOfficeId |
||
56 | */ |
||
57 | public function setPickupOfficeId(?int $pickupOfficeId): void |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return int|null |
||
64 | */ |
||
65 | public function getPickupOfficeId(): ?int |
||
70 |