| Total Complexity | 9 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace FlatPlan\Components; |
||
| 5 | class Gallery extends AbstractComponent { |
||
| 6 | |||
| 7 | protected $components = array(); |
||
| 8 | |||
| 9 | protected $roles = ['gallery', 'mosaic']; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $role |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public function __construct($role) |
||
| 18 | } |
||
| 19 | |||
| 20 | public function setComponents($components) |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | private function getComponents() |
||
| 36 | { |
||
| 37 | $componentList = array(); |
||
| 38 | foreach ($this->components as $subComponent) { |
||
| 39 | array_push($componentList, $subComponent->getComponent()); |
||
| 40 | } |
||
| 41 | return $componentList; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getComponent() |
||
| 52 | } |
||
| 53 | } |
||
| 54 |