RatepayClient   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 34
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A installmentCalculation() 0 6 1
A installmentConfiguration() 0 6 1
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\Client\Ratepay;
9
10
use Generated\Shared\Transfer\QuoteTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\QuoteTransfer 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 Spryker\Client\Kernel\AbstractClient;
12
13
/**
14
 * @method \SprykerEco\Client\Ratepay\RatepayFactory getFactory()
15
 */
16
class RatepayClient extends AbstractClient implements RatepayClientInterface
17
{
18
    /**
19
     * {@inheritdoc}
20
     *
21
     * @api
22
     *
23
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
24
     *
25
     * @return \Generated\Shared\Transfer\RatepayInstallmentConfigurationResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...urationResponseTransfer 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...
26
     */
27
    public function installmentConfiguration(QuoteTransfer $quoteTransfer)
28
    {
29
        return $this
30
            ->getFactory()
31
            ->createRatepayStub()
32
            ->installmentConfiguration($quoteTransfer);
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     *
38
     * @api
39
     *
40
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
41
     *
42
     * @return \Generated\Shared\Transfer\RatepayInstallmentCalculationResponseTransfer
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ulationResponseTransfer 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...
43
     */
44
    public function installmentCalculation(QuoteTransfer $quoteTransfer)
45
    {
46
        return $this
47
            ->getFactory()
48
            ->createRatepayStub()
49
            ->installmentCalculation($quoteTransfer);
50
    }
51
}
52