configBuilder = $configBuilder; $this->sdkFactory = $sdkFactory; $this->serviceActionPerformerFactory = $serviceActionPerformerFactory; } /** * Create a Quote Service * * @return Quote */ public function build() { $config = $this->configBuilder ->setScopeCode($this->storeCode) ->setScopeType($this->scopeType) ->build(); return $this->sdkFactory->create( [ 'configuration' => $config, 'actionPerformerFactory' => $this->serviceActionPerformerFactory ] ); } /** * Set the Scope Code * * @param string|null $scopeCode * @return QuoteBuilder */ public function setScopeCode($scopeCode) { $this->storeCode = $scopeCode; return $this; } /** * Set the Scope Type * * @param string|null $scopeType * @return QuoteBuilder */ public function setScopeType($scopeType) { $this->scopeType = $scopeType; return $this; } }