| 1 | <?php namespace SimpleUPS\Track; |
||
| 6 | class ShipmentType extends \SimpleUPS\Model |
||
| 7 | { |
||
| 8 | const |
||
| 9 | TYPE_SMALL_PACKAGE = 1, |
||
| 10 | TYPE_FREIGHT = 2, |
||
| 11 | TYPE_MAIL_INNOVATION = 3; |
||
| 12 | |||
| 13 | private |
||
| 14 | /* @var string $code */ |
||
| 15 | $code, |
||
| 16 | |||
| 17 | /* @var string $description */ |
||
| 18 | $description; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $code |
||
| 22 | * |
||
| 23 | * @return ShipmentType |
||
| 24 | */ |
||
| 25 | public function setCode($code) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getCode() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $description |
||
| 41 | * |
||
| 42 | * @return ShipmentType |
||
| 43 | */ |
||
| 44 | public function setDescription($description) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getDescription() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param \SimpleXMLElement $xml |
||
| 60 | * |
||
| 61 | * @return ShipmentType |
||
| 62 | */ |
||
| 63 | public static function fromXml(\SimpleXMLElement $xml) |
||
| 73 | } |