12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- /**
- * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
- */
- namespace Temando\Shipping\Rest\Response\DataObject;
- use Temando\Shipping\Rest\Response\Fields\ShipmentAttributes;
- use Temando\Shipping\Rest\Response\Meta\ShipmentMeta;
- /**
- * Temando API Location Resource Object
- *
- * @package Temando\Shipping\Rest
- * @author Christoph Aßmann <christoph.assmann@netresearch.de>
- * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
- * @link https://www.temando.com/
- */
- class Shipment extends AbstractResource
- {
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\ShipmentAttributes
- */
- private $attributes;
- /**
- * @var \Temando\Shipping\Rest\Response\Fields\LocationAttributes[]
- */
- private $locations;
- /**
- * @var \Temando\Shipping\Rest\Response\Meta\ShipmentMeta
- */
- private $meta;
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\ShipmentAttributes
- */
- public function getAttributes()
- {
- return $this->attributes;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\ShipmentAttributes $attributes
- * @return void
- */
- public function setAttributes(ShipmentAttributes $attributes)
- {
- $this->attributes = $attributes;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Fields\LocationAttributes[]
- */
- public function getLocations()
- {
- return $this->locations;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Fields\LocationAttributes[] $locations
- * @return void
- */
- public function setLocations(array $locations)
- {
- $this->locations = $locations;
- }
- /**
- * @return \Temando\Shipping\Rest\Response\Meta\ShipmentMeta
- */
- public function getMeta()
- {
- return $this->meta;
- }
- /**
- * @param \Temando\Shipping\Rest\Response\Meta\ShipmentMeta $meta
- * @return void
- */
- public function setMeta(ShipmentMeta $meta)
- {
- $this->meta = $meta;
- }
- }
|