number = $number; $this->oneEsIdentifier = $oneEsidentifier; $this->currency = $currency; $this->produtcs = array(); $this->services = array(); $this->props = array(); } /** * Add product to order. * @param CmlProduct $product */ public function addProduct($product) { array_push($this->produtcs, $product); } /** * Add service to order * @param CmlService $service */ public function addService($service) { array_push($this->services, $service); } /** * Add CmlAccount to order. * @param CmlAccount $account */ public function addAccount($account) { $this->account = $account; } /** * Add prop to CmlSalesOrder * @param String $name * @param String $value */ public function addProp($name, $value) { $this->props[$name] = $value; } /** * Return values of prop. If prop no exists - return null. * @param String $propName * @return String */ public function getPropValue($propName) { return $this->props[$propName]; } public function getNumber() { return $this->number; } public function getAccount() { return $this->account; } public function getCurrency() { return $this->currency; } /** * Return products * @return array */ public function getProducts() { return $this->produtcs; } /** * Return Services * @return array */ public function getServices() { return $this->services; } public function getOneEsId() { return $this->oneEsIdentifier; } }