1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace VasilDakov\Speedy\Service\Calculation; |
||
6 | |||
7 | use VasilDakov\Speedy\Traits\ToArray; |
||
8 | |||
9 | /** |
||
10 | * Class CalculationSender. |
||
11 | * |
||
12 | * @author Vasil Dakov <[email protected]> |
||
13 | * @copyright 2009-2022 Neutrino.bg |
||
14 | * |
||
15 | * @version 1.0 |
||
16 | */ |
||
17 | class CalculationSender |
||
18 | { |
||
19 | use ToArray; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
20 | |||
21 | private int $clientId; |
||
22 | |||
23 | private ?int $dropoffOfficeId; |
||
24 | |||
25 | 2 | public function __construct(int $clientId, int $dropoffOfficeId = null) |
|
26 | { |
||
27 | 2 | $this->clientId = $clientId; |
|
28 | 2 | $this->dropoffOfficeId = $dropoffOfficeId; |
|
29 | } |
||
30 | |||
31 | 1 | public function getClientId(): int |
|
32 | { |
||
33 | 1 | return $this->clientId; |
|
34 | } |
||
35 | |||
36 | 1 | public function getDropoffOfficeId(): ?int |
|
37 | { |
||
38 | 1 | return $this->dropoffOfficeId; |
|
39 | } |
||
40 | } |
||
41 |