|
6 | 6 |
|
7 | 7 | /** |
8 | 8 | * Evalanche object like mailing, image, template, etc. |
9 | | - * |
10 | | - * @package Scn\EvalancheSoapStruct\Struct\Generic |
11 | 9 | */ |
12 | 10 | class ResourceInformation implements ResourceInformationInterface |
13 | 11 | { |
14 | | - /** |
15 | | - * @var int |
16 | | - */ |
17 | | - private $id; |
18 | | - |
19 | | - /** |
20 | | - * @var string |
21 | | - */ |
22 | | - private $name; |
23 | | - |
24 | | - /** |
25 | | - * @var string |
26 | | - */ |
27 | | - private $url; |
28 | | - |
29 | | - /** |
30 | | - * @var int |
31 | | - */ |
32 | | - private $typeId; |
33 | | - |
34 | | - /** |
35 | | - * @var int |
36 | | - */ |
37 | | - private $folderId; |
38 | | - |
39 | | - /** |
40 | | - * @var int |
41 | | - */ |
42 | | - private $mandatorId; |
43 | | - |
44 | | - /** |
45 | | - * @param int $id |
46 | | - * @param string $name |
47 | | - * @param string $url |
48 | | - * @param int $typeId |
49 | | - * @param int $folderId |
50 | | - * @param int $mandatorId |
51 | | - */ |
52 | 12 | public function __construct( |
53 | | - int $id = null, |
54 | | - string $name = null, |
55 | | - string $url = null, |
56 | | - int $typeId = null, |
57 | | - int $folderId = null, |
58 | | - int $mandatorId = null |
| 13 | + private readonly int $id, |
| 14 | + private readonly string $name, |
| 15 | + private readonly string $url, |
| 16 | + private readonly int $typeId, |
| 17 | + private readonly int $folderId, |
| 18 | + private readonly int $mandatorId, |
| 19 | + private readonly int $lastModified, |
59 | 20 | ) { |
60 | | - $this->id = $id; |
61 | | - $this->name = $name; |
62 | | - $this->url = $url; |
63 | | - $this->typeId = $typeId; |
64 | | - $this->folderId = $folderId; |
65 | | - $this->mandatorId = $mandatorId; |
66 | 21 | } |
67 | 22 |
|
68 | | - /** |
69 | | - * @return int |
70 | | - */ |
71 | 23 | public function getId(): int |
72 | 24 | { |
73 | 25 | return $this->id; |
74 | 26 | } |
75 | 27 |
|
76 | | - /** |
77 | | - * @return string |
78 | | - */ |
79 | 28 | public function getName(): string |
80 | 29 | { |
81 | 30 | return $this->name; |
82 | 31 | } |
83 | 32 |
|
84 | | - /** |
85 | | - * @return string |
86 | | - */ |
87 | 33 | public function getUrl(): string |
88 | 34 | { |
89 | 35 | return $this->url; |
90 | 36 | } |
91 | 37 |
|
92 | | - /** |
93 | | - * @return int |
94 | | - */ |
95 | 38 | public function getTypeId(): int |
96 | 39 | { |
97 | 40 | return $this->typeId; |
98 | 41 | } |
99 | 42 |
|
100 | | - /** |
101 | | - * @return int |
102 | | - */ |
103 | 43 | public function getFolderId(): int |
104 | 44 | { |
105 | 45 | return $this->folderId; |
106 | 46 | } |
107 | 47 |
|
108 | | - /** |
109 | | - * @return int |
110 | | - */ |
111 | 48 | public function getMandatorId(): int |
112 | 49 | { |
113 | 50 | return $this->mandatorId; |
114 | 51 | } |
| 52 | + |
| 53 | + public function getLastModified(): int |
| 54 | + { |
| 55 | + return $this->lastModified; |
| 56 | + } |
115 | 57 | } |
0 commit comments