for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of RussianPost SDK package.
*
* © Appwilio (http://appwilio.com), greabock (https://github.com/greabock), JhaoDa (https://github.com/jhaoda)
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Appwilio\RussianPostSDK\Dispatching\Entities;
final class Error
{
/** @var string */
private $code;
/** @var string|null */
private $message;
public function __construct(string $code, ?string $message = null)
$this->code = $code;
$this->message = $message;
}
public function getCode(): string
return $this->code;
public function getMessage(): string
return $this->message;