for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerEco\Client\Computop;
use Spryker\Client\Kernel\AbstractFactory;
use Spryker\Client\ZedRequest\ZedRequestClientInterface;
use SprykerEco\Client\Computop\Dependency\Client\ComputopToShipmentClientInterface;
use SprykerEco\Client\Computop\Zed\ComputopStub;
use SprykerEco\Client\Computop\Zed\ComputopStubInterface;
* @method \SprykerEco\Client\Computop\ComputopConfig getConfig()
class ComputopFactory extends AbstractFactory
{
* @return \SprykerEco\Client\Computop\Zed\ComputopStubInterface
public function createZedStub(): ComputopStubInterface
return new ComputopStub(
$this->getZedRequestClient(),
$this->getConfig()
);
}
* @return \Spryker\Client\ZedRequest\ZedRequestClientInterface
public function getZedRequestClient(): ZedRequestClientInterface
return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_ZED_REQUEST);
* @return \SprykerEco\Client\Computop\Dependency\Client\ComputopToShipmentClientInterface
public function getShipmentClient(): ComputopToShipmentClientInterface
return $this->getProvidedDependency(ComputopDependencyProvider::CLIENT_SHIPMENT);
* @return \SprykerEco\Client\Computop\ComputopQuoteDefaultShipmentExpanderInterface
public function createComputopQuoteDefaultShipmentExpander(): ComputopQuoteDefaultShipmentExpanderInterface
return new ComputopQuoteDefaultShipmentExpander($this->getContainer()->getLocator()->computop()->client());