/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Validator/GroupProviderInterface.php
30 строк
728 B
Yonel Ceruto
[FrameworkBundle][Validator] Allow implementing validation groups provider outside DTOs
20 окт 2023, 14:59
20 окт 2023, 14:59
a3a089a
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Constraints\GroupSequence; /** * Defines the interface for a validation group provider. * * @author Yonel Ceruto <yonelceruto@gmail.com> */ interface GroupProviderInterface { /** * Returns which validation groups should be used for a certain state * of the object. * * @return string[]|string[][]|GroupSequence */ public function getGroups(object $object): array|GroupSequence; }