| Total Complexity | 7 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class CalculationRecipient |
||
| 18 | { |
||
| 19 | use ToArray; |
||
| 20 | |||
| 21 | private bool $privatePerson; |
||
| 22 | |||
| 23 | private ?CalculationAddressLocation $addressLocation = null; |
||
| 24 | |||
| 25 | private ?int $siteId = null; |
||
| 26 | |||
| 27 | private ?int $pickupOfficeId = null; |
||
| 28 | |||
| 29 | 4 | public function __construct( |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | public function isPrivatePerson(): bool |
|
| 40 | { |
||
| 41 | 1 | return $this->privatePerson; |
|
| 42 | } |
||
| 43 | |||
| 44 | 1 | public function setSiteId(?int $siteId): void |
|
| 45 | { |
||
| 46 | 1 | $this->siteId = $siteId; |
|
| 47 | } |
||
| 48 | |||
| 49 | 1 | public function getSiteId(): ?int |
|
| 50 | { |
||
| 51 | 1 | return $this->siteId; |
|
| 52 | } |
||
| 53 | |||
| 54 | 1 | public function setPickupOfficeId(?int $pickupOfficeId): void |
|
| 55 | { |
||
| 56 | 1 | $this->pickupOfficeId = $pickupOfficeId; |
|
| 57 | } |
||
| 58 | |||
| 59 | 1 | public function getPickupOfficeId(): ?int |
|
| 60 | { |
||
| 61 | 1 | return $this->pickupOfficeId; |
|
| 62 | } |
||
| 63 | |||
| 64 | 1 | public function getAddressLocation(): ?CalculationAddressLocation |
|
| 67 | } |
||
| 68 | } |
||
| 69 |