| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class SettingService |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param Model $model |
||
| 15 | * @param string $key |
||
| 16 | * @param string $cast |
||
| 17 | * @param mixed $value |
||
| 18 | * @return Setting |
||
| 19 | */ |
||
| 20 | 19 | public function create(Model $model, string $key, string $cast, $value): Setting |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param Model $model |
||
| 40 | * @param string $key |
||
| 41 | * @return bool |
||
| 42 | * @throws |
||
| 43 | */ |
||
| 44 | 2 | public function delete(Model $model, string $key): bool |
|
| 64 |