1 | <?php |
||
9 | Class Chart { |
||
10 | |||
11 | protected $subsetList; |
||
12 | |||
13 | /** |
||
14 | * [__construct description] |
||
15 | * @param \Illuminate\Support\Collection $subsetList |
||
16 | */ |
||
17 | public function __construct(Collection $subsetList) |
||
21 | |||
22 | /** |
||
23 | * [addSubset description] |
||
24 | * @param string $subset |
||
25 | * @param \Closure $closure |
||
26 | */ |
||
27 | public function addSubset($subset, Closure $closure) |
||
36 | |||
37 | /** |
||
38 | * [render description] |
||
39 | * @return json [description] |
||
40 | */ |
||
41 | public function render() |
||
70 | |||
71 | /** |
||
72 | * [addSimpleSubset description] |
||
73 | * @param string $subset |
||
74 | * @param \Closure $closure |
||
75 | */ |
||
76 | protected function addSimpleSubset($subset, Closure $closure) |
||
84 | |||
85 | /** |
||
86 | * [addCascadeSubset description] |
||
87 | * @param string $cascadeSubsetNotation |
||
88 | * @param \Closure $closure |
||
89 | */ |
||
90 | protected function addCascadeSubset($cascadeSubsetNotation, Closure $closure) |
||
102 | |||
103 | /** |
||
104 | * [callFunc description] |
||
105 | * @param \Closure $closure |
||
106 | * @param \EnergieProduction\Subsets\* $class |
||
107 | */ |
||
108 | protected function callFunc(Closure $closure, $class) |
||
112 | |||
113 | /** |
||
114 | * [makeSubsetClass description] |
||
115 | * @param string $subset |
||
116 | * @return \EnergieProduction\Subsets\* |
||
117 | */ |
||
118 | protected function makeSubsetClass($subset) |
||
124 | |||
125 | /** |
||
126 | * [dotNotationToArray description] |
||
127 | * @param array &$arr |
||
128 | * @param string $path |
||
129 | * @param array $val |
||
130 | * @return array |
||
131 | */ |
||
132 | protected function dotNotationToArray(array &$arr, $path, $val) |
||
147 | } |
||
148 |