UpdateAlias::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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 UpdateAlias
11
{
12
    /**
13
     * @var string
14
     * @SerializedName("Id")
15
     */
16
    private $id;
17
18
    /**
19
     * @var int|null
20
     * @SerializedName("Lifetime")
21
     * @Type("integer")
22
     */
23
    private $lifetime;
24
25
    public function __construct(string $id)
26
    {
27
        $this->id = $id;
28
    }
29
30
    public function getId(): ?string
31
    {
32
        return $this->id;
33
    }
34
35
    public function getLifetime(): ?int
36
    {
37
        return $this->lifetime;
38
    }
39
40
    public function setLifetime(?int $lifetime): self
41
    {
42
        $this->lifetime = $lifetime;
43
44
        return $this;
45
    }
46
}
47