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

Authentication::getThreeDsChallenge()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
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