EasycreditStub   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 8
c 1
b 0
f 0
dl 0
loc 61
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A sendPreContractualInformationAndRedemptionPlanRequest() 0 3 1
A sendApprovalTextRequest() 0 3 1
A sendQueryCreditAssessmentRequest() 0 3 1
A __construct() 0 3 1
A sendInitializePaymentRequest() 0 3 1
A sendInterestAndTotalSumRequest() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Client\Easycredit\Zed;
9
10
use Generated\Shared\Transfer\EasycreditApprovalTextResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...valTextResponseTransfer 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 Generated\Shared\Transfer\EasycreditInitializePaymentResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...PaymentResponseTransfer 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
use Generated\Shared\Transfer\EasycreditInterestAndAdjustTotalSumResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...otalSumResponseTransfer 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...
13
use Generated\Shared\Transfer\EasycreditPreContractualInformationAndRedemptionPlanResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...ionPlanResponseTransfer 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...
14
use Generated\Shared\Transfer\EasycreditQueryCreditAssessmentResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...essmentResponseTransfer 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...
15
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...
16
use SprykerEco\Client\Easycredit\Dependency\Client\EasycreditToZedRequestClientInterface;
17
18
class EasycreditStub implements EasycreditStubInterface
19
{
20
    /**
21
     * @var \SprykerEco\Client\Easycredit\Dependency\Client\EasycreditToZedRequestClientInterface
22
     */
23
    protected $zedRequestClient;
24
25
    /**
26
     * @param \SprykerEco\Client\Easycredit\Dependency\Client\EasycreditToZedRequestClientInterface $easycreditToZedRequestClient
27
     */
28
    public function __construct(EasycreditToZedRequestClientInterface $easycreditToZedRequestClient)
29
    {
30
        $this->zedRequestClient = $easycreditToZedRequestClient;
31
    }
32
33
    /**
34
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
35
     *
36
     * @return \Generated\Shared\Transfer\EasycreditInitializePaymentResponseTransfer
37
     */
38
    public function sendInitializePaymentRequest(QuoteTransfer $quoteTransfer): EasycreditInitializePaymentResponseTransfer
39
    {
40
        return $this->zedRequestClient->call('/easycredit/gateway/send-initialize-payment-request', $quoteTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedRequest...quest', $quoteTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...PaymentResponseTransfer.
Loading history...
41
    }
42
43
    /**
44
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
45
     *
46
     * @return \Generated\Shared\Transfer\EasycreditQueryCreditAssessmentResponseTransfer
47
     */
48
    public function sendQueryCreditAssessmentRequest(QuoteTransfer $quoteTransfer): EasycreditQueryCreditAssessmentResponseTransfer
49
    {
50
        return $this->zedRequestClient->call('/easycredit/gateway/send-query-credit-assessment-request', $quoteTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedRequest...quest', $quoteTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...essmentResponseTransfer.
Loading history...
51
    }
52
53
    /**
54
     * @return \Generated\Shared\Transfer\EasycreditApprovalTextResponseTransfer
55
     */
56
    public function sendApprovalTextRequest(): EasycreditApprovalTextResponseTransfer
57
    {
58
        return $this->zedRequestClient->call('/easycredit/gateway/send-approval-text-request', new QuoteTransfer());
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedRequest...ansfer\QuoteTransfer()) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...valTextResponseTransfer.
Loading history...
59
    }
60
61
    /**
62
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
63
     *
64
     * @return \Generated\Shared\Transfer\EasycreditInterestAndAdjustTotalSumResponseTransfer
65
     */
66
    public function sendInterestAndTotalSumRequest(QuoteTransfer $quoteTransfer): EasycreditInterestAndAdjustTotalSumResponseTransfer
67
    {
68
        return $this->zedRequestClient->call('/easycredit/gateway/send-interest-and-total-sum-request', $quoteTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedRequest...quest', $quoteTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...otalSumResponseTransfer.
Loading history...
69
    }
70
71
    /**
72
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
73
     *
74
     * @return \Generated\Shared\Transfer\EasycreditPreContractualInformationAndRedemptionPlanResponseTransfer
75
     */
76
    public function sendPreContractualInformationAndRedemptionPlanRequest(QuoteTransfer $quoteTransfer): EasycreditPreContractualInformationAndRedemptionPlanResponseTransfer
77
    {
78
        return $this->zedRequestClient->call('/easycredit/gateway/send-pre-contractual-information-and-redemption-plan-request', $quoteTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->zedRequest...quest', $quoteTransfer) returns the type Spryker\Shared\Kernel\Transfer\TransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...ionPlanResponseTransfer.
Loading history...
79
    }
80
}
81