1 | <?php namespace Distilleries\Expendable\Layouts; |
||
10 | class LayoutManager implements LayoutManagerContract { |
||
11 | |||
12 | |||
13 | protected $config; |
||
14 | protected $view; |
||
15 | protected $state; |
||
16 | protected $filesystem; |
||
17 | protected $items = []; |
||
18 | protected $layout = null; |
||
19 | |||
20 | 316 | public function __construct(array $config, Factory $view, Filesystem $filesystem, StateDisplayerContract $state) |
|
27 | |||
28 | |||
29 | 316 | public function setupLayout($layout) |
|
33 | |||
34 | 316 | public function initInterfaces(array $interfaces, $class) |
|
47 | |||
48 | 316 | public function initStaticPart(Closure $closure = null) |
|
71 | |||
72 | 316 | public function add(array $items) |
|
76 | |||
77 | 100 | public function render() |
|
81 | |||
82 | /** |
||
83 | * @return array |
||
84 | */ |
||
85 | public function getConfig() |
||
89 | |||
90 | /** |
||
91 | * @return Factory |
||
92 | */ |
||
93 | 256 | public function getView() |
|
97 | |||
98 | /** |
||
99 | * @return StateDisplayerContract |
||
100 | */ |
||
101 | 256 | public function getState() |
|
105 | |||
106 | /** |
||
107 | * @return Filesystem |
||
108 | */ |
||
109 | public function getFilesystem() |
||
113 | |||
114 | |||
115 | } |