Check   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTerminalId() 0 3 1
A getType() 0 3 1
A setType() 0 5 1
A setTerminalId() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
9
final class Check
10
{
11
    public const TYPE_ONLINE = 'ONLINE';
12
    public const TYPE_ONLINE_STRONG = 'ONLINE_STRONG';
13
14
    /**
15
     * @var string|null
16
     * @SerializedName("Type")
17
     */
18
    private $type;
19
20
    /**
21
     * @var string|null
22
     * @SerializedName("TerminalId")
23
     */
24
    private $terminalId;
25
26
    public function getType(): ?string
27
    {
28
        return $this->type;
29
    }
30
31
    public function setType(?string $type): self
32
    {
33
        $this->type = $type;
34
35
        return $this;
36
    }
37
38
    public function getTerminalId(): ?string
39
    {
40
        return $this->terminalId;
41
    }
42
43
    public function setTerminalId(?string $terminalId): self
44
    {
45
        $this->terminalId = $terminalId;
46
47
        return $this;
48
    }
49
}
50