| 1 | <?php |
||
| 13 | class UpdateSettingsService extends Service |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \App\Containers\Settings\Settings\Repositories\SettingsRepository |
||
| 18 | */ |
||
| 19 | private $settingsRepository; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * FindSettingsService constructor. |
||
| 23 | * |
||
| 24 | * @param \App\Containers\Settings\Settings\Repositories\SettingsRepository $settingsRepository |
||
| 25 | */ |
||
| 26 | public function __construct(SettingsRepository $settingsRepository) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param $key |
||
| 33 | * |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | private function findByKey($key) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param $key |
||
| 45 | * @param $value |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function update($key, $value) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param $value |
||
| 62 | * |
||
| 63 | * @return mixed |
||
| 64 | */ |
||
| 65 | public function updateSomething($value) |
||
| 69 | |||
| 70 | } |
||
| 71 |