|
3 | 3 | namespace LibKml\Domain\Feature; |
4 | 4 |
|
5 | 5 | use LibKml\Domain\AbstractView\AbstractView; |
| 6 | +use LibKml\Domain\Feature\ExtendedData\ExtendedData; |
6 | 7 | use LibKml\Domain\FieldType\Atom\Author; |
7 | 8 | use LibKml\Domain\KmlObject; |
8 | | -use LibKml\Domain\Link\Link; |
| 9 | +use LibKml\Domain\FieldType\Atom\Link; |
9 | 10 | use LibKml\Domain\Region; |
10 | 11 | use LibKml\Domain\StyleSelector\StyleSelector; |
| 12 | +use LibKml\Domain\TimePrimitive\TimePrimitive; |
11 | 13 |
|
12 | 14 | /** |
13 | 15 | * Feature abstract class. |
@@ -39,21 +41,11 @@ public function clearStyleSelectors(): void { |
39 | 41 | $this->styleSelector = array(); |
40 | 42 | } |
41 | 43 |
|
42 | | - public function getAllStyles(): array { |
43 | | - $all_styles = array(); |
44 | | - |
45 | | - foreach ($this->styleSelector as $style) { |
46 | | - $all_styles[] = $style; |
47 | | - } |
48 | | - |
49 | | - return $all_styles; |
50 | | - } |
51 | | - |
52 | 44 | public function getName(): string { |
53 | 45 | return $this->name; |
54 | 46 | } |
55 | 47 |
|
56 | | - public function setName(string $name) { |
| 48 | + public function setName(string $name): void { |
57 | 49 | $this->name = $name; |
58 | 50 | } |
59 | 51 |
|
@@ -109,71 +101,71 @@ public function getPhoneNumber(): string { |
109 | 101 | return $this->phoneNumber; |
110 | 102 | } |
111 | 103 |
|
112 | | - public function setPhoneNumber(string $phoneNumber) { |
| 104 | + public function setPhoneNumber(string $phoneNumber): void { |
113 | 105 | $this->phoneNumber = $phoneNumber; |
114 | 106 | } |
115 | 107 |
|
116 | 108 | public function getSnippet(): string { |
117 | 109 | return $this->snippet; |
118 | 110 | } |
119 | 111 |
|
120 | | - public function setSnippet(string $snippet) { |
| 112 | + public function setSnippet(string $snippet): void { |
121 | 113 | $this->snippet = $snippet; |
122 | 114 | } |
123 | 115 |
|
124 | 116 | public function getDescription(): string { |
125 | 117 | return $this->description; |
126 | 118 | } |
127 | 119 |
|
128 | | - public function setDescription(string $description) { |
| 120 | + public function setDescription(string $description): void { |
129 | 121 | $this->description = $description; |
130 | 122 | } |
131 | 123 |
|
132 | 124 | public function getAbstractView(): AbstractView { |
133 | 125 | return $this->abstractView; |
134 | 126 | } |
135 | 127 |
|
136 | | - public function setAbstractView(AbstractView $abstractView) { |
| 128 | + public function setAbstractView(AbstractView $abstractView): void { |
137 | 129 | $this->abstractView = $abstractView; |
138 | 130 | } |
139 | 131 |
|
140 | | - public function getTimePrimitive() { |
| 132 | + public function getTimePrimitive(): TimePrimitive { |
141 | 133 | return $this->timePrimitive; |
142 | 134 | } |
143 | 135 |
|
144 | | - public function setTimePrimitive($timePrimitive) { |
| 136 | + public function setTimePrimitive(TimePrimitive $timePrimitive): void { |
145 | 137 | $this->timePrimitive = $timePrimitive; |
146 | 138 | } |
147 | 139 |
|
148 | | - public function getStyleUrl() { |
| 140 | + public function getStyleUrl(): string { |
149 | 141 | return $this->styleUrl; |
150 | 142 | } |
151 | 143 |
|
152 | | - public function setStyleUrl($styleUrl) { |
| 144 | + public function setStyleUrl(string $styleUrl): void { |
153 | 145 | $this->styleUrl = $styleUrl; |
154 | 146 | } |
155 | 147 |
|
156 | | - public function getStyleSelector() { |
| 148 | + public function getStyleSelector(): array { |
157 | 149 | return $this->styleSelector; |
158 | 150 | } |
159 | 151 |
|
160 | | - public function setStyleSelector(array $styleSelector) { |
| 152 | + public function setStyleSelector(array $styleSelector): void { |
161 | 153 | $this->styleSelector = $styleSelector; |
162 | 154 | } |
163 | 155 |
|
164 | | - public function getRegion() { |
| 156 | + public function getRegion(): Region { |
165 | 157 | return $this->region; |
166 | 158 | } |
167 | 159 |
|
168 | | - public function setRegion(Region $region) { |
| 160 | + public function setRegion(Region $region): void { |
169 | 161 | $this->region = $region; |
170 | 162 | } |
171 | 163 |
|
172 | | - public function getExtendedData() { |
| 164 | + public function getExtendedData(): ExtendedData { |
173 | 165 | return $this->extendedData; |
174 | 166 | } |
175 | 167 |
|
176 | | - public function setExtendedData($extendedData) { |
| 168 | + public function setExtendedData(ExtendedData $extendedData): void { |
177 | 169 | $this->extendedData = $extendedData; |
178 | 170 | } |
179 | 171 |
|
|
0 commit comments