Passed
Push — master ( 5addfc...e8c424 )
by Manuel
59s queued 11s
created

Check   A

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