1: <?php
2: namespace Datadepo\Api\Structures;
3:
4: 5: 6: 7:
8: class BusinessLine extends AbstractStructure
9: {
10:
11:
12: private $_suppliers;
13:
14: 15: 16:
17: public function getPrimary()
18: {
19: return $this->data->code;
20: }
21:
22: 23: 24:
25: public function getSupplierSet()
26: {
27: return $this->data->supplierSet;
28: }
29:
30: 31: 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: }