| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class Brand { |
||
| 6 | use \Nickcheek\Atdconnect\Traits\ApiTrait; |
||
| 7 | |||
| 8 | private $location; |
||
| 9 | private $wsdl; |
||
| 10 | |||
| 11 | public function __construct() |
||
| 12 | { |
||
| 13 | $config = include(realpath(dirname(__FILE__) . '/../config/config.php')); |
||
| 14 | $this->location = $config->location; |
||
| 15 | $this->wsdl = 'https://testws.atdconnect.com/ws/3_4/brandstyles.wsdl'; |
||
| 16 | } |
||
| 17 | |||
| 18 | //************************************************ |
||
| 19 | // Brand Styles Service |
||
| 20 | //************************************************ |
||
| 21 | |||
| 22 | |||
| 23 | public function getBrand($product = null) |
||
| 24 | { |
||
| 25 | return $this->apiCall('getBrand',array('locationNumber' => $this->location,'productGroup' => $product),$this->wsdl); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getStyle($brand = null) |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | } |