WrapperFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createAkeneoPage() 0 3 1
A createAkeneoResourceCursor() 0 3 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
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;
0 ignored issues
show
Bug introduced by
The type Akeneo\Pim\ApiClient\Pagination\PageInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use Akeneo\Pim\ApiClient\Pagination\ResourceCursorInterface;
0 ignored issues
show
Bug introduced by
The type Akeneo\Pim\ApiClient\Pag...ResourceCursorInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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): AkeneoResourcePageInterface
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): AkeneoResourceCursorInterface
31
    {
32
        return new AkeneoResourceCursor($resourceCursor);
33
    }
34
}
35