| 1 | <?php |
||
| 5 | class FileFilters extends Filters |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Registered filters to operate upon. |
||
| 9 | * |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $filters = ['owner_type', 'owner_id', 'creator_id', 'type', 'flag']; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $ownerType |
||
| 16 | * @return mixed |
||
| 17 | */ |
||
| 18 | protected function owner_type(string $ownerType) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param int $ownerId |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | protected function owner_id(int $ownerId) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param int $creatorId |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | protected function creator_id(int $creatorId) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $type |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | protected function type(string $type) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $flag |
||
| 52 | * @return mixed |
||
| 53 | */ |
||
| 54 | protected function flag(string $flag) |
||
| 58 | } |
||
| 59 |