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.

31 lines
700B

  1. <?php
  2. namespace App\Http\Controllers\Web\Customer;
  3. use App\Http\Controllers\Web\BaseParam;
  4. use App\Rules\Kana;
  5. use App\Rules\ZipCode;
  6. /**
  7. * @property string name
  8. * @property string nameKana
  9. * @property string zipCode
  10. * @property string address
  11. * @property string phoneNo
  12. * @property ?string memo
  13. */
  14. class UpdateUserInfoOrderParam extends BaseParam
  15. {
  16. public function rules(): array
  17. {
  18. return [
  19. 'name' => $this->str(),
  20. 'name_kana' => $this->str([new Kana()]),
  21. 'zip_code' => $this->str([new ZipCode()]),
  22. 'address' => $this->str(),
  23. 'phone_no' => $this->str(),
  24. 'memo' => $this->str(true),
  25. ];
  26. }
  27. }