Copied!

StructValidator

StructValidator.php : 13

Methods

public__construct()

StructValidator.php : 17
public __construct(ValidatorInterface $validator)

Parameters

Name Type Default value Description
$validator ValidatorInterface - -

publicassertValidStruct()

StructValidator.php : 27
public assertValidStruct(string $name, object $struct, array<string|int, string> $groups) : void

Parameters

Name Type Default value Description
$name string - -
$struct object - -
$groups array<string|int, string> - -
Tags
Throws
ValidationFailedException