Conditions | 5 |
Paths | 5 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace FlatPlan\Components; |
||
20 | public function setComponents($components) |
||
21 | { |
||
22 | if (is_array($components)) { |
||
23 | foreach ($components as $component) { |
||
24 | if ($component instanceof Image) { |
||
25 | $component->updateStyles($this->role); |
||
26 | array_push($this->components, $component); |
||
27 | } |
||
28 | } |
||
29 | } else if ($components instanceof Image) { |
||
30 | $components->updateStyles($this->role); |
||
54 |