Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
13 | trait HasSettingsField |
||
14 | { |
||
15 | /** |
||
16 | * @param string $path |
||
17 | * @param null $default |
||
1 ignored issue
–
show
|
|||
18 | * @return \Glorand\Model\Settings\Contracts\SettingsManagerContract |
||
19 | */ |
||
20 | public function settings(string $path = null, $default = null): SettingsManagerContract |
||
21 | { |
||
22 | return $path ? $this->settings()->get($path, $default) : new FieldSettingsManager($this); |
||
23 | } |
||
24 | |||
25 | protected function getSettingsAttribute() |
||
28 | } |
||
29 | |||
30 | public function setSettingsAttribute($settings) |
||
33 | } |
||
34 | } |
||
35 |