| @@ 197-207 (lines=11) @@ | ||
| 194 | * |
|
| 195 | * @return ScriptFeature[] |
|
| 196 | */ |
|
| 197 | public function getScriptFeatures() |
|
| 198 | { |
|
| 199 | $features = []; |
|
| 200 | foreach ($this->elements as $element) { |
|
| 201 | if ($element instanceof ScriptFeatureable) { |
|
| 202 | $features[] = $element->getScriptFeatures(); |
|
| 203 | } |
|
| 204 | } |
|
| 205 | ||
| 206 | return ScriptFeature::collect($features); |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * @param mixed $startX |
|
| @@ 170-180 (lines=11) @@ | ||
| 167 | * |
|
| 168 | * @return ScriptFeature[] |
|
| 169 | */ |
|
| 170 | public function getScriptFeatures() |
|
| 171 | { |
|
| 172 | $features = []; |
|
| 173 | foreach ($this->elements as $element) { |
|
| 174 | if ($element instanceof ScriptFeatureable) { |
|
| 175 | $features[] = $element->getScriptFeatures(); |
|
| 176 | } |
|
| 177 | } |
|
| 178 | ||
| 179 | return ScriptFeature::collect($features); |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * @return mixed |
|