| 1 | <?php |
||
| 7 | class DeviceGroup implements DataTableScopeContract { |
||
| 8 | |||
| 9 | private $group_id; |
||
| 10 | |||
| 11 | |||
| 12 | function __construct($group_id) { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Apply a query scope. |
||
| 18 | * |
||
| 19 | * @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query |
||
| 20 | * @return mixed |
||
| 21 | */ |
||
| 22 | public function apply($query) |
||
| 28 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.