You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
567B

  1. <?php
  2. namespace App\Http\Controllers\Web\LoginUser;
  3. use App\Http\Controllers\Web\BaseParam;
  4. use App\Http\Controllers\Web\SortableParam;
  5. use App\Repositories\LoginUserRepository;
  6. /**
  7. * @property ?string name
  8. * @property ?string $email
  9. */
  10. class CustomerListParam extends BaseParam implements SortableParam
  11. {
  12. public function rules(): array
  13. {
  14. return [
  15. LoginUserRepository::CONDITION_EMAIL => $this->str(true),
  16. LoginUserRepository::CONDITION_NAME => $this->str(true),
  17. ...$this->sortableRules(),
  18. ];
  19. }
  20. }