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

Check::setTerminalId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
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
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