示例#1
0
 protected function getFactory()
 {
     if (!$this->factory) {
         $this->factory = Factory::getInstance()->setup($this->getOptions(), $this->getLogger());
     }
     return $this->factory;
 }
示例#2
0
 public function factorySdk(array $options, $loggerChannel = 'bin', $verbose = false)
 {
     return Factory::getInstance()->setup($options, $this->factoryLogger($loggerChannel, $verbose));
 }
示例#3
0
 private function skuManager()
 {
     return $this->factorySubManager(Factory::getInstance(), 'sku');
 }
示例#4
0
 /**
  * @test Dá acesso a ``Factory``
  * @test
  */
 public function setClient()
 {
     $factory = new Factory();
     $factory->setClient(['client_id' => 'x882ja', 'access_token' => '8998329jejd']);
     $this->assertInstanceOf('\\Gpupo\\NetshoesSdk\\Client\\Client', $factory->getClient());
 }