Authentication::setExemption()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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