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