Overview

Namespaces

  • Datadepo
    • Api
      • DataStores
      • Structures
      • Synchronizers

Classes

  • Datadepo\Api\ApiWrapper
  • Datadepo\Api\Collector
  • Datadepo\Api\DataDepoResponse
  • Datadepo\Api\DataDepoSync
  • Datadepo\Api\DataStores\PdoDataStore
  • Datadepo\Api\IniConfiguration
  • Datadepo\Api\RunningFiles
  • Datadepo\Api\Structures\AbstractStructure
  • Datadepo\Api\Structures\BusinessLine
  • Datadepo\Api\Structures\BusinessSupplierLine
  • Datadepo\Api\Structures\CategoryLine
  • Datadepo\Api\Structures\DataLine
  • Datadepo\Api\Structures\ImageLine
  • Datadepo\Api\Structures\ParameterLine
  • Datadepo\Api\Structures\PriceLine
  • Datadepo\Api\Structures\RelatedLine
  • Datadepo\Api\Structures\StoreLine
  • Datadepo\Api\Structures\SupplierBankAccountLine
  • Datadepo\Api\Structures\SupplierLine
  • Datadepo\Api\Structures\SupplierPersonLine
  • Datadepo\Api\Structures\VariantLine
  • Datadepo\Api\Synchronizers\AbstractSynchronizer
  • Datadepo\Api\Synchronizers\BusinessSynchronizer
  • Datadepo\Api\Synchronizers\CategorySynchronizer
  • Datadepo\Api\Synchronizers\DataSynchronizer
  • Datadepo\Api\Synchronizers\SuppliersSynchronizer

Interfaces

  • Datadepo\Api\DataStores\IDataStore

Exceptions

  • Datadepo\Api\ApiException
  • Datadepo\Api\ConfigurationException
  • Datadepo\Api\DataDepoRunningException
  • Datadepo\Api\DataDepoSuspendedException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Datadepo\Api\Structures;
 3: 
 4: /**
 5:  * @property-read string $supplierSet
 6:  * @property-read BusinessSupplierLine[] $suppliers
 7:  */
 8: class BusinessLine extends AbstractStructure
 9: {
10:   
11:   /** @var BusinessSupplierLine[] */
12:   private $_suppliers;
13:   
14:   /**
15:    * @return string
16:    */
17:   public function getPrimary()
18:   {
19:     return $this->data->code;
20:   }
21:   
22:   /**
23:    * @return string
24:    */
25:   public function getSupplierSet()
26:   {
27:     return $this->data->supplierSet;
28:   }
29:   
30:   /**
31:    * @return BusinessSupplierLine[]
32:    */
33:   public function getSuppliers()
34:   {
35:     if ($this->_suppliers === NULL) {
36:       $this->_suppliers = array();
37:       foreach ($this->data->suppliers as $idName => $data) {
38:         $this->_suppliers[$idName] = new BusinessSupplierLine($data, $idName);
39:       }
40:     }
41:     return $this->_suppliers;
42:   }
43:   
44:   
45: }
API documentation generated by ApiGen