Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class AkeneoPimSdkDirector implements AkeneoPimSdkDirectorInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Adapter\Sdk\AkeneoPimSdkFactoryInterface |
||
15 | */ |
||
16 | protected $akeneoPimSdkFactory; |
||
17 | |||
18 | /** |
||
19 | * @var \Symfony\Component\HttpFoundation\Session\SessionInterface |
||
20 | */ |
||
21 | private SessionInterface $session; |
||
22 | |||
23 | public function __construct( |
||
24 | AkeneoPimSdkFactoryInterface $akeneoPimSdkFactory, |
||
25 | SessionInterface $session |
||
26 | ) { |
||
27 | $this->akeneoPimSdkFactory = $akeneoPimSdkFactory; |
||
28 | $this->session = $session; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param \SprykerEco\Service\AkeneoPim\AkeneoPimConfig $config |
||
33 | * |
||
34 | * @return \Akeneo\Pim\ApiClient\AkeneoPimClientInterface |
||
35 | */ |
||
36 | public function createAkeneoPimClient(AkeneoPimConfig $config): AkeneoPimClientInterface |
||
52 | } |
||
53 | } |
||
54 |