Passed
Pull Request — master (#28)
by Manuel
09:19
created

Authentication   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getThreeDsChallenge() 0 3 1
A setThreeDsChallenge() 0 4 1
A getExemption() 0 3 1
A setExemption() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class Authentication
9
{
10
    const EXEMPTION_LOW_VALUE = 'LOW_VALUE';
11
    const EXEMPTION_TRANSACTION_RISK_ANALYSIS = 'TRANSACTION_RISK_ANALYSIS';
12
    const EXEMPTION_RECURRING = 'RECURRING';
13
14
    const THREEDSCHALLENGE_FORCE = 'FORCE';
15
    const THREEDSCHALLENGE_AVOID = 'AVOID';
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("Exemption")
20
     */
21
    private $exemption;
22
23
    /**
24
     * @var string|null
25
     * @SerializedName("ThreeDsChallenge")
26
     */
27
    private $threeDsChallenge;
28
29
    public function getExemption(): ?string
30
    {
31
        return $this->exemption;
32
    }
33
34
    public function setExemption(?string $exemption): self
35
    {
36
        $this->exemption = $exemption;
37
        return $this;
38
    }
39
40
    public function getThreeDsChallenge(): ?string
41
    {
42
        return $this->threeDsChallenge;
43
    }
44
45
    public function setThreeDsChallenge(?string $threeDsChallenge): self
46
    {
47
        $this->threeDsChallenge = $threeDsChallenge;
48
        return $this;
49
    }
50
}
51