Completed
Push — development ( ea08ae...a063ea )
by Volodymyr
15:59
created

WrapperFactory::createAkeneoResourceCursor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper;
9
10
use Akeneo\Pim\ApiClient\Pagination\PageInterface;
11
use Akeneo\Pim\ApiClient\Pagination\ResourceCursorInterface;
12
13
class WrapperFactory implements WrapperFactoryInterface
14
{
15
    /**
16
     * @param \Akeneo\Pim\ApiClient\Pagination\PageInterface $page
17
     *
18
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
19
     */
20
    public function createAkeneoPage(PageInterface $page)
21
    {
22
        return new AkeneoResourcePage($page, $this);
23
    }
24
25
    /**
26
     * @param \Akeneo\Pim\ApiClient\Pagination\ResourceCursorInterface $resourceCursor
27
     *
28
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
29
     */
30
    public function createAkeneoResourceCursor(ResourceCursorInterface $resourceCursor)
31
    {
32
        return new AkeneoResourceCursor($resourceCursor);
33
    }
34
}
35