Total Complexity | 5 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class CalculationService |
||
17 | { |
||
18 | use ToArray; |
||
19 | |||
20 | private bool $autoAdjustPickupDate = true; |
||
21 | |||
22 | private array $serviceIds = []; |
||
23 | |||
24 | public function __construct(bool $autoAdjustPickupDate, array $serviceIds) |
||
25 | { |
||
26 | $this->autoAdjustPickupDate = $autoAdjustPickupDate; |
||
27 | $this->serviceIds = $serviceIds; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param bool $autoAdjustPickupDate |
||
32 | */ |
||
33 | public function setAutoAdjustPickupDate(bool $autoAdjustPickupDate): void |
||
34 | { |
||
35 | $this->autoAdjustPickupDate = $autoAdjustPickupDate; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function getAutoAdjustPickupDate(): bool |
||
42 | { |
||
43 | return $this->autoAdjustPickupDate; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param array $serviceIds |
||
48 | */ |
||
49 | public function setServiceIds(array $serviceIds): void |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return array |
||
56 | */ |
||
57 | public function getServiceIds(): array |
||
60 | } |
||
61 | } |
||
62 |