check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $this->maps = [ DepartaimantCollectionType::current()->value => DepartaimantCurrent::class, DepartaimantCollectionType::vintage()->value => DepartaimantVintage::class ]; $this->merge([ 'maps' => $this->maps ]); return [ 'state' => [ new EnumIsValidRule(DepartaimantStatus::class) ] ]; } }