Copied!

StructWrapperValidator

StructWrapperValidator.php : 19
Implements ValidatorInterface

Methods

public__construct()

StructWrapperValidator.php : 23
public __construct(ValidatorInterface $inner)

Parameters

Name Type Default value Description
$inner ValidatorInterface - -

publicgetMetadataFor()

StructWrapperValidator.php : 28
public getMetadataFor(mixed $value) : MetadataInterface

Parameters

Name Type Default value Description
$value mixed - -

Return values

MetadataInterface

publichasMetadataFor()

StructWrapperValidator.php : 33
public hasMetadataFor(mixed $value) : bool

Parameters

Name Type Default value Description
$value mixed - -

Return values

bool

publicinContext()

StructWrapperValidator.php : 90
public inContext(ExecutionContextInterface $context) : ContextualValidatorInterface

Parameters

Name Type Default value Description
$context ExecutionContextInterface - -

Return values

ContextualValidatorInterface

publicstartContext()

StructWrapperValidator.php : 85
public startContext() : ContextualValidatorInterface

Return values

ContextualValidatorInterface

publicvalidate()

StructWrapperValidator.php : 38
public validate(mixed $value[, mixed $constraints = null ][, mixed $groups = null ]) : ConstraintViolationListInterface

Parameters

Name Type Default value Description
$value mixed - -
$constraints mixed null -
$groups mixed null -

Return values

ConstraintViolationListInterface

publicvalidateProperty()

StructWrapperValidator.php : 75
public validateProperty(object $object, string $propertyName[, mixed $groups = null ]) : ConstraintViolationListInterface

Parameters

Name Type Default value Description
$object object - -
$propertyName string - -
$groups mixed null -

Return values

ConstraintViolationListInterface

publicvalidatePropertyValue()

StructWrapperValidator.php : 80
public validatePropertyValue(mixed $objectOrClass, string $propertyName, mixed $value[, mixed $groups = null ]) : ConstraintViolationListInterface

Parameters

Name Type Default value Description
$objectOrClass mixed - -
$propertyName string - -
$value mixed - -
$groups mixed null -

Return values

ConstraintViolationListInterface