| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class ViewCollection |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string|null |
||
| 21 | */ |
||
| 22 | private $pluginPath; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $views = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * ViewCollection constructor. |
||
| 31 | * @param $pluginPath |
||
| 32 | */ |
||
| 33 | public function __construct($pluginPath = null) |
||
| 34 | { |
||
| 35 | $this->pluginPath = $pluginPath; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function getViews() |
||
| 42 | { |
||
| 43 | return $this->views; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param array $views |
||
| 48 | */ |
||
| 49 | public function setViews($views) |
||
| 58 | ); |
||
| 59 | } |
||
| 60 | } |