AfterPayBankAccountValidationPlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A validateBankAccount() 0 6 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\Yves\AfterPay\Plugin;
9
10
use Generated\Shared\Transfer\AfterPayValidateBankAccountRequestTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...kAccountRequestTransfer 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\AfterPayValidateBankAccountResponseTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...AccountResponseTransfer 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 Spryker\Yves\Kernel\AbstractPlugin;
13
14
/**
15
 * @method \SprykerEco\Yves\AfterPay\AfterPayFactory getFactory()
16
 * @method \SprykerEco\Client\AfterPay\AfterPayClientInterface getClient()
17
 */
18
class AfterPayBankAccountValidationPlugin extends AbstractPlugin implements AfterPayBankAccountValidationPluginInterface
19
{
20
    /**
21
     * {@inheritDoc}
22
     *
23
     * @api
24
     *
25
     * @param \Generated\Shared\Transfer\AfterPayValidateBankAccountRequestTransfer $validateBankAccountRequestTransfer
26
     *
27
     * @return \Generated\Shared\Transfer\AfterPayValidateBankAccountResponseTransfer
28
     */
29
    public function validateBankAccount(
30
        AfterPayValidateBankAccountRequestTransfer $validateBankAccountRequestTransfer
31
    ): AfterPayValidateBankAccountResponseTransfer {
32
        return $this->getFactory()
33
            ->getClient()
34
            ->validateBankAccount($validateBankAccountRequestTransfer);
35
    }
36
}
37