PHP 클래스 ApiPlatform\Core\Bridge\Symfony\Validator\Metadata\Property\ValidatorPropertyMetadataFactory

저자: Kévin Dunglas ([email protected])
상속: implements ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

공개 메소드들

메소드 설명
__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