PHP Класс ApiPlatform\Core\Bridge\Symfony\Validator\Metadata\Property\ValidatorPropertyMetadataFactory

Автор: Kévin Dunglas ([email protected])
Наследование: implements ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface $validatorMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated )
create ( string $resourceClass, string $name, array $options = [] ) : PropertyMetadata

Приватные методы

Метод Описание
isRequired ( Constraint $constraint ) : boolean Is this constraint making the related property required?
isRequiredByGroups ( Symfony\Component\Validator\Mapping\PropertyMetadataInterface $validatorPropertyMetadata, array $options ) : boolean Tests if the property is required because of its validation groups.

Описание методов

__construct() публичный метод

public __construct ( Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface $validatorMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated )
$validatorMetadataFactory Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface
$decorated ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface

create() публичный метод

public create ( string $resourceClass, string $name, array $options = [] ) : PropertyMetadata
$resourceClass string
$name string
$options array
Результат ApiPlatform\Core\Metadata\Property\PropertyMetadata