|
- <?php
-
- namespace App\Http\Controllers\Web\SeasonTicketContract\Selection;
-
- use App\Http\Controllers\Web\BaseParam;
- use App\Rules\PhoneNumber;
- use App\Rules\SimpleRegEx;
-
- /**
- * @property int selectionRecordNo
- * @property int entryRecordNo
- * @property string fs
- * @property string address
- * @property string phoneNo
- */
- class EntryParams extends BaseParam
- {
- public function rules(): array
- {
- return [
- 'selection_record_no' => $this->numeric(),
- 'entry_record_no' => $this->numeric(),
- 'fs' => $this->str(),
- 'address' => $this->str(),
- 'phone_no' => $this->str([new SimpleRegEx("/[^0-9-]+/", "不正な文字が含まれています", true)]),
- ];
- }
- }
|