Method | Description | |
---|---|---|
__construct ( Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface $validatorMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $decorated ) | ||
create ( string $resourceClass, string $name, array $options = [] ) : |
Method | Description | |
---|---|---|
isRequired ( |
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. |
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 |