1 | <?php |
||
13 | class ItemListElement { |
||
14 | |||
15 | private $itemId; |
||
16 | private $label; |
||
17 | private $lastUpdate; |
||
18 | private $queryrApiUrl; |
||
19 | private $wikidataPageUrl; |
||
20 | private $wikipediaPageUrl; |
||
21 | |||
22 | /** |
||
23 | * @param ItemId $itemId |
||
24 | * @return $this |
||
25 | */ |
||
26 | 3 | public function setItemId( ItemId $itemId ) { |
|
30 | |||
31 | /** |
||
32 | * @param string|null $label |
||
33 | * @return $this |
||
34 | * @throws InvalidArgumentException |
||
35 | */ |
||
36 | 1 | public function setLabel( $label ) { |
|
44 | |||
45 | /** |
||
46 | * @param string $lastUpdate |
||
47 | * @return $this |
||
48 | * @throws InvalidArgumentException |
||
49 | */ |
||
50 | 3 | public function setLastUpdate( $lastUpdate ) { |
|
58 | |||
59 | /** |
||
60 | * @param string $queryrApiUrl |
||
61 | * @return $this |
||
62 | * @throws InvalidArgumentException |
||
63 | */ |
||
64 | 3 | public function setQueryrApiUrl( $queryrApiUrl ) { |
|
72 | |||
73 | /** |
||
74 | * @param string $wikidataPageUrl |
||
75 | * @return $this |
||
76 | * @throws InvalidArgumentException |
||
77 | */ |
||
78 | 3 | public function setWikidataPageUrl( $wikidataPageUrl ) { |
|
86 | |||
87 | /** |
||
88 | * @param string|null $wikipediaPageUrl |
||
89 | * @return $this |
||
90 | * @throws InvalidArgumentException |
||
91 | */ |
||
92 | 1 | public function setWikipediaPageUrl( $wikipediaPageUrl ) { |
|
100 | |||
101 | /** |
||
102 | * @return ItemId |
||
103 | * @throws RuntimeException |
||
104 | */ |
||
105 | 2 | public function getItemId() { |
|
111 | |||
112 | /** |
||
113 | * @return string |
||
114 | * @throws RuntimeException |
||
115 | */ |
||
116 | 2 | public function getLastUpdateTime() { |
|
122 | |||
123 | /** |
||
124 | * @return string|null |
||
125 | */ |
||
126 | 2 | public function getLabel() { |
|
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | * @throws RuntimeException |
||
133 | */ |
||
134 | 2 | public function getQueryrApiUrl() { |
|
140 | |||
141 | /** |
||
142 | * @return string |
||
143 | * @throws RuntimeException |
||
144 | */ |
||
145 | 2 | public function getWikidataUrl() { |
|
151 | |||
152 | /** |
||
153 | * @return string|null |
||
154 | */ |
||
155 | 2 | public function getWikipediaPageUrl() { |
|
158 | |||
159 | } |
||
160 |