<?php namespace App\Requests; use Symfony\Component\Validator\Constraints as Assert; class SortPriceRequest extends BaseRequest { #[Assert\All([ new Assert\Collection([ 'price' => new Assert\Type('int'), 'count' => new Assert\Type('int') ]) ])] public array $items; }