| 1 | <?php namespace App\Modules\Core\Services; |
||
| 6 | class SettingService extends BaseService |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Init new object. |
||
| 10 | * |
||
| 11 | * @param SettingRepository $repo |
||
| 12 | * @return void |
||
|
|
|||
| 13 | */ |
||
| 14 | public function __construct(SettingRepository $repo) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Save list of settings. |
||
| 21 | * |
||
| 22 | * @param array $data |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function saveMany(array $data) |
||
| 33 | } |
||
| 34 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.