예제 #1
0
 /**
  * @param \SimpleXMLElement $xml
  *
  * @return ShipmentType
  */
 public static function fromXml(\SimpleXMLElement $xml)
 {
     $shipmentType = new ShipmentType();
     $shipmentType->setIsResponse();
     $shipmentType->setCode($xml->Code)->setDescription($xml->Description);
     return $shipmentType;
 }
예제 #2
0
 public function getType()
 {
     return ShipmentType::PERSONAL();
 }