Total Complexity | 8 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php namespace FlatPlan\Components; |
||
5 | class Gallery extends AbstractComponent { |
||
6 | |||
7 | protected $items = array(); |
||
8 | |||
9 | protected $roles = ['gallery', 'mosaic']; |
||
10 | |||
11 | /** |
||
12 | * @param string $role |
||
13 | * @param string $bannerType |
||
14 | * @return void |
||
15 | */ |
||
16 | public function __construct($role) |
||
19 | } |
||
20 | |||
21 | public function setItem($items) |
||
22 | { |
||
23 | if (is_array($items)) { |
||
24 | foreach ($items as $item) { |
||
25 | if ($item instanceof AbstractComponent) { |
||
26 | array_push($this->items, $item); |
||
27 | } |
||
28 | } |
||
29 | } else if ($items instanceof AbstractComponent) { |
||
30 | array_push($this->items, $items); |
||
31 | } |
||
32 | } |
||
33 | |||
34 | private function getItems() |
||
35 | { |
||
36 | return $this->items; |
||
37 | } |
||
38 | |||
39 | protected function getComponent() |
||
45 | } |
||
46 | } |
||
47 |