1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the Neutrino package. |
||
5 | * |
||
6 | * (c) Vasil Dakov <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace VasilDakov\Speedy\Service\Service; |
||
15 | |||
16 | use VasilDakov\Speedy\Service\Calculation\CalculationRecipient; |
||
17 | use VasilDakov\Speedy\Service\Calculation\CalculationSender; |
||
18 | use VasilDakov\Speedy\Service\Shipment\CreateShipmentRequest; |
||
19 | use VasilDakov\Speedy\Service\Shipment\ShipmentRecipient; |
||
20 | use VasilDakov\Speedy\Traits\ToArray; |
||
21 | |||
22 | /** |
||
23 | * Class DestinationServicesRequest. |
||
24 | * |
||
25 | * @author Vasil Dakov <[email protected]> |
||
26 | * @copyright 2009-2023 Neutrino.bg |
||
27 | * |
||
28 | * @version 1.0 |
||
29 | */ |
||
30 | class DestinationServicesRequest extends CreateShipmentRequest |
||
31 | { |
||
32 | use ToArray; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
33 | |||
34 | private ?\DateTime $date = null; |
||
0 ignored issues
–
show
|
|||
35 | |||
36 | private ?CalculationSender $sender = null; |
||
0 ignored issues
–
show
|
|||
37 | |||
38 | private CalculationRecipient $recipient; |
||
39 | |||
40 | 2 | public function __construct(CalculationRecipient $recipient) |
|
41 | { |
||
42 | 2 | $this->recipient = $recipient; |
|
43 | } |
||
44 | |||
45 | 1 | public function getRecipient(): CalculationRecipient |
|
46 | { |
||
47 | 1 | return $this->recipient; |
|
48 | } |
||
49 | } |
||
50 |