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.

29 satır
737B

  1. <?php
  2. namespace App\Http\Controllers\Web\SeasonTicketContract\Selection;
  3. use App\Http\Controllers\Web\BaseParam;
  4. use App\Rules\PhoneNumber;
  5. use App\Rules\SimpleRegEx;
  6. /**
  7. * @property int selectionRecordNo
  8. * @property int entryRecordNo
  9. * @property string fs
  10. * @property string address
  11. * @property string phoneNo
  12. */
  13. class EntryParams extends BaseParam
  14. {
  15. public function rules(): array
  16. {
  17. return [
  18. 'selection_record_no' => $this->numeric(),
  19. 'entry_record_no' => $this->numeric(),
  20. 'fs' => $this->str(),
  21. 'address' => $this->str(),
  22. 'phone_no' => $this->str([new SimpleRegEx("/[^0-9-]+/", "不正な文字が含まれています", true)]),
  23. ];
  24. }
  25. }