|
- <?php
-
- namespace App\Http\Controllers\Web\Contract;
-
- use App\Http\Controllers\Web\BaseParam;
- use App\Repositories\ContractRepository as Repository;
-
- /**
- * @property ?string $id
- * @property ?string $name
- */
-
- class ContractsParam extends BaseParam
- {
- public function rules(): array
- {
- return
- array_merge(
- [
- Repository::CONDITION_ID => $this->str(true),
- Repository::CONDITION_NAME => $this->str(true),
- ],
- $this->sortableRules(),
- );
- }
- }
|