for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Neutrino package.
*
* (c) Vasil Dakov <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace VasilDakov\Speedy\Service\Service;
use VasilDakov\Speedy\Service\Calculation\CalculationRecipient;
use VasilDakov\Speedy\Service\Calculation\CalculationSender;
use VasilDakov\Speedy\Service\Shipment\CreateShipmentRequest;
use VasilDakov\Speedy\Service\Shipment\ShipmentRecipient;
use VasilDakov\Speedy\Traits\ToArray;
/**
* Class DestinationServicesRequest.
* @author Vasil Dakov <[email protected]>
* @copyright 2009-2023 Neutrino.bg
* @version 1.0
class DestinationServicesRequest extends CreateShipmentRequest
{
use ToArray;
private ?\DateTime $date = null;
$date
private ?CalculationSender $sender = null;
$sender
private CalculationRecipient $recipient;
public function __construct(CalculationRecipient $recipient)
$this->recipient = $recipient;
}
public function getRecipient(): ShipmentRecipient
return $this->recipient;
return $this->recipient
VasilDakov\Speedy\Servic...on\CalculationRecipient
VasilDakov\Speedy\Servic...pment\ShipmentRecipient