for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ParcelValue\Api\JsonApi\ResourceObjects;
class Shipment extends \WebServCo\Api\JsonApi\AbstractResourceObject
{
public const DATE_FORMAT = 'Y-m-d';
public const SERVICE_ECONOMY = 'economy';
public const SERVICE_EXPRESS = 'express';
public const CURRENCY_EUR = 'EUR';
public const TYPE = 'shipment';
public function __construct(?string $id = null)
parent::__construct(self::TYPE);
if (!$id) {
return;
}
$this->setId($id);
public function getReference(): string
return (string) $this->getMeta('reference');
public function getScheduledProcessing(): bool
return (bool) $this->getMeta('scheduledProcessing');
public function getService(): string
return (string) $this->getMeta('service');
public function getStatus(): int
return (int) $this->getMeta('status');
public function setScheduledProcessing(bool $scheduledProcessing): bool
$this->setMeta('scheduledProcessing', $scheduledProcessing);
return true;
public function setService(string $service): bool
$this->setMeta('service', $service);
public function setStatus(int $status): bool
$this->setMeta('status', $status);