/** * @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; }
public function getType() { return ShipmentType::PERSONAL(); }