| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class Shipment extends \WebServCo\Api\JsonApi\AbstractResourceObject |
||
| 5 | { |
||
| 6 | const TYPE = 'shipment'; |
||
| 7 | const DATE_FORMAT = 'Y-m-d'; |
||
| 8 | const SERVICE_ECONOMY = 'economy'; |
||
| 9 | const SERVICE_EXPRESS = 'express'; |
||
| 10 | const CURRENCY_EUR = 'EUR'; |
||
| 11 | |||
| 12 | public function __construct($id = null) |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getReference() |
||
| 20 | { |
||
| 21 | return $this->getMeta('reference'); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getService() |
||
| 25 | { |
||
| 26 | return $this->getMeta('service'); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getStatus() |
||
| 32 | } |
||
| 33 | |||
| 34 | public function setService($service) |
||
| 38 | } |
||
| 39 | |||
| 40 | public function setStatus(int $status) |
||
| 46 |