| 1 | <?php |
||
| 8 | class Setting extends BaseModel |
||
| 9 | { |
||
| 10 | use QueryBuilderTrait; |
||
| 11 | |||
| 12 | protected $endpoint = 'settings'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Retrieve option. |
||
| 16 | * |
||
| 17 | * @param int $group_id |
||
| 18 | * @param int $id |
||
| 19 | * @param array $options |
||
| 20 | * |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | protected function option($group_id, $id, $options = []) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Retrieve options. |
||
| 32 | * |
||
| 33 | * @param int $id |
||
| 34 | * @param array $options |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | protected function options($id, $options = []) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Update Existing Item. |
||
| 45 | * |
||
| 46 | * @param int $group_id |
||
| 47 | * @param int $id |
||
| 48 | * @param array $data |
||
| 49 | * |
||
| 50 | * @return object |
||
| 51 | */ |
||
| 52 | protected function update($group_id, $id, $data) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Batch Update. |
||
| 61 | * |
||
| 62 | * @param array $data |
||
| 63 | * |
||
| 64 | * @return object |
||
| 65 | */ |
||
| 66 | protected function batch($id, $data) |
||
| 72 | } |
||
| 73 |
This check looks for function calls that miss required arguments.