UpdateAlias   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setLifetime() 0 5 1
A getLifetime() 0 3 1
A __construct() 0 3 1
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