| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class TableSettingsManager extends AbstractSettingsManager |
||
| 9 | { |
||
| 10 | public function apply(array $settings = []): SettingsManagerContract |
||
| 20 | } |
||
| 21 | |||
| 22 | public function delete(string $path = null): SettingsManagerContract |
||
| 23 | { |
||
| 24 | if (!$path) { |
||
| 25 | if ($this->model->modelSettings) { |
||
| 26 | $this->model->modelSettings->delete(); |
||
| 27 | } |
||
| 28 | } else { |
||
| 29 | $settings = $this->all(); |
||
| 30 | array_forget($settings, $path); |
||
| 31 | $this->apply($settings); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function set(string $path, $value): SettingsManagerContract |
||
| 43 | } |
||
| 44 | } |
||
| 45 |