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() |
||
69 | |||
70 | /** |
||
71 | * [addSimpleSubset description] |
||
72 | * @param string $subset |
||
73 | * @param \Closure $closure |
||
74 | */ |
||
75 | protected function addSimpleSubset($subset, Closure $closure) |
||
83 | |||
84 | /** |
||
85 | * [addCascadeSubset description] |
||
86 | * @param string $cascadeSubsetNotation |
||
87 | * @param \Closure $closure |
||
88 | */ |
||
89 | protected function addCascadeSubset($cascadeSubsetNotation, Closure $closure) |
||
101 | |||
102 | /** |
||
103 | * [callFunc description] |
||
104 | * @param \Closure $closure |
||
105 | * @param \EnergieProduction\Subsets\* $class |
||
106 | */ |
||
107 | protected function callFunc(Closure $closure, $class) |
||
111 | |||
112 | /** |
||
113 | * [makeSubsetClass description] |
||
114 | * @param string $subset |
||
115 | * @return \EnergieProduction\Subsets\* |
||
116 | */ |
||
117 | protected function makeSubsetClass($subset) |
||
123 | |||
124 | /** |
||
125 | * [dotNotationToArray description] |
||
126 | * @param array &$arr |
||
127 | * @param string $path |
||
128 | * @param array $val |
||
129 | * @return array |
||
130 | */ |
||
131 | protected function dotNotationToArray(array &$arr, $path, $val) |
||
146 | |||
147 | /** |
||
148 | * [restoreExpressions description] |
||
149 | * @param string $formatedChart |
||
150 | * @return string |
||
151 | */ |
||
152 | protected function restoreExpressions($formatedChart) |
||
159 | } |
||
160 |