示例#1
0
 public function __construct1(array $data)
 {
     parent::__construct1($data);
     $supplierInvoiceAccrualRows = [];
     foreach ($this->SupplierInvoiceAccrualRows as $row) {
         $supplierInvoiceAccrualRows[] = new SupplierInvoiceAccrualRow($row);
     }
     $this->SupplierInvoiceAccrualRows = $supplierInvoiceAccrualRows;
 }
示例#2
0
文件: Folder.php 项目: hmphu/fortnox
 public function __construct1(array $data)
 {
     parent::__construct1($data);
     $files = [];
     foreach ($this->Files as $file) {
         $files = new Folder($file);
     }
     $this->Files = $files;
     $folders = [];
     foreach ($this->Folders as $folder) {
         $folders = new Folder($folder);
     }
     $this->Folders = $folders;
 }
示例#3
0
文件: Order.php 项目: hmphu/fortnox
 public function __construct1(array $data)
 {
     parent::__construct1($data);
     $this->EmailInformation = new EmailInformation($this->EmailInformation);
     $orderRows = [];
     foreach ($this->OrderRows as $row) {
         $orderRows[] = new OrderRow($row);
     }
     $this->OrderRows = $orderRows;
     $rows = [];
     foreach ($this->Rows as $row) {
         $rows = new OrderRow($row);
     }
     $this->Rows = $rows;
 }
示例#4
0
 public function __construct1(array $data)
 {
     parent::__construct1($data);
     if ($this->DefaultDeliveryTypes) {
         $this->DefaultDeliveryTypes = new DefaultDeliveryTypes($this->DefaultDeliveryTypes);
     }
     if ($this->DefaultTemplates) {
         $this->DefaultTemplates = new DefaultTemplates($this->DefaultTemplates);
     }
 }
示例#5
0
文件: Invoice.php 项目: hmphu/fortnox
 public function __construct1(array $data)
 {
     parent::__construct1($data);
     if (is_array($this->InvoiceRows) && !empty($this->InvoiceRows)) {
         $invoiceRows = [];
         foreach ($this->InvoiceRows as $row) {
             $invoiceRows[] = new InvoiceRow($row);
         }
         $this->InvoiceRows = $invoiceRows;
     }
     $this->EDIInformation = new EDIInformation($this->EDIInformation);
     $this->EmailInformation = new EmailInformation($this->EmailInformation);
 }