RiskCheckFactory   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A createConsumerScoreContainer() 0 3 1
A createAddressCheckContainer() 0 3 1
A createAddressCheckResponseContainer() 0 3 1
A createConsumerScoreResponseContainer() 0 3 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\Zed\Payone\Business\RiskManager\Factory;
9
10
use SprykerEco\Zed\Payone\Business\Api\Request\Container\AddressCheckContainer;
11
use SprykerEco\Zed\Payone\Business\Api\Request\Container\ConsumerScoreContainer;
12
use SprykerEco\Zed\Payone\Business\Api\Request\Container\ContainerInterface;
13
use SprykerEco\Zed\Payone\Business\Api\Response\Container\AbstractResponseContainer;
14
use SprykerEco\Zed\Payone\Business\Api\Response\Container\AddressCheckResponseContainer;
15
use SprykerEco\Zed\Payone\Business\Api\Response\Container\ConsumerScoreResponseContainer;
16
17
class RiskCheckFactory implements RiskCheckFactoryInterface
18
{
19
    /**
20
     * @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\ContainerInterface
21
     */
22
    public function createAddressCheckContainer(): ContainerInterface
23
    {
24
        return new AddressCheckContainer();
25
    }
26
27
    /**
28
     * @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\ContainerInterface
29
     */
30
    public function createConsumerScoreContainer(): ContainerInterface
31
    {
32
        return new ConsumerScoreContainer();
33
    }
34
35
    /**
36
     * @return \SprykerEco\Zed\Payone\Business\Api\Response\Container\AbstractResponseContainer
37
     */
38
    public function createAddressCheckResponseContainer(): AbstractResponseContainer
39
    {
40
        return new AddressCheckResponseContainer();
41
    }
42
43
    /**
44
     * @return \SprykerEco\Zed\Payone\Business\Api\Response\Container\AbstractResponseContainer
45
     */
46
    public function createConsumerScoreResponseContainer(): AbstractResponseContainer
47
    {
48
        return new ConsumerScoreResponseContainer();
49
    }
50
}
51