Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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 |
||
33 | } |
||
34 | |||
35 | public function getLifetime(): ?int |
||
36 | { |
||
37 | return $this->lifetime; |
||
38 | } |
||
39 | |||
40 | public function setLifetime(?int $lifetime): self |
||
45 | } |
||
46 | } |
||
47 |