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\Tracking\Packet;
final class TrackingEvent
{
/** @var int */
private $OperTypeID;
private $OperCtgID;
/** @var string */
private $OperName;
private $DateOper;
private $IndexOper;
* Код операции (OperTypeID).
* @link https://tracking.pochta.ru/support/dictionaries/operation_codes
* @return int
public function getOperationId(): int
return $this->OperTypeID;
}
* Код атрибута (OperCtgID).
public function getAttributeId(): int
return $this->OperCtgID;
* Название операции (OperName).
* @return string
public function getOperationName(): string
return $this->OperName;
* Время (локальное) проведения операции (DateOper).
* @return \DateTimeImmutable
public function getPerformedAt(): \DateTimeImmutable
return \DateTimeImmutable::createFromFormat('d.m.Y H:i:s', $this->DateOper);
* Почтовый индекс места проведения операции (IndexOper).
public function getPostalCode(): string
return $this->IndexOper;