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\Shipment;
use VasilDakov\Speedy\Error;
use JMS\Serializer\Annotation as Serializer;
/**
* Class CancelShipmentResponse
* @author Vasil Dakov <[email protected]>
* @copyright 2009-2023 Neutrino.bg
* @version 1.0
* @Serializer\AccessType("public_method")
class CancelShipmentResponse
{
* @var Error|null
* @Serializer\Type("VasilDakov\Speedy\Error")
private ?Error $error = null;
public function __construct(Error $error = null)
$this->error = $error;
}
* @param Error|null $error
public function setError(?Error $error): void
* @return Error|null
public function getError(): ?Error
return $this->error;