Ejemplo n.º 1
0
 protected function getFactory()
 {
     if (!$this->factory) {
         $this->factory = Factory::getInstance()->setup($this->getOptions(), $this->getLogger());
     }
     return $this->factory;
 }
Ejemplo n.º 2
0
 public function factorySdk(array $options, $loggerChannel = 'bin', $verbose = false)
 {
     return Factory::getInstance()->setup($options, $this->factoryLogger($loggerChannel, $verbose));
 }
Ejemplo n.º 3
0
 private function skuManager()
 {
     return $this->factorySubManager(Factory::getInstance(), 'sku');
 }
Ejemplo n.º 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());
 }