Class

Symfony\Component\Validator\ConstraintViolation

class ConstraintViolation

Represents a single violation of a constraint.

Methods

__construct($messageTemplate, array $messageParameters, $root, $propertyPath, $invalidValue)

string getMessageTemplate()

array getMessageParameters()

string getMessage()

Returns the violation message.

getRoot()

getPropertyPath()

getInvalidValue()

Details

at line 27
public __construct($messageTemplate, array $messageParameters, $root, $propertyPath, $invalidValue)

Parameters

$messageTemplate
array $messageParameters
$root
$propertyPath
$invalidValue

at line 41
public string getMessageTemplate()

Return Value

string

at line 51
public array getMessageParameters()

Return Value

array

at line 63
public string getMessage()

Returns the violation message.

Return Value

string

at line 68
public getRoot()

at line 73
public getPropertyPath()

at line 78
public getInvalidValue()