PHP Class Symfony\Component\Validator\ConstraintViolation

Author: Bernhard Schussek ([email protected])
Inheritance: implements Symfony\Component\Validator\ConstraintViolationInterface
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$invalidValue
$messageParameters
$messageTemplate
$propertyPath
$root

Public Methods

Method Description
__construct ( $messageTemplate, array $messageParameters, $root, $propertyPath, $invalidValue )
getInvalidValue ( )
getMessage ( ) : string Returns the violation message.
getMessageParameters ( ) : array
getMessageTemplate ( ) : string
getPropertyPath ( )
getRoot ( )

Method Details

__construct() public method

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

getInvalidValue() public method

public getInvalidValue ( )

getMessage() public method

Returns the violation message.
public getMessage ( ) : string
return string

getMessageParameters() public method

public getMessageParameters ( ) : array
return array

getMessageTemplate() public method

public getMessageTemplate ( ) : string
return string

getPropertyPath() public method

public getPropertyPath ( )

getRoot() public method

public getRoot ( )

Property Details

$invalidValue protected property

protected $invalidValue

$messageParameters protected property

protected $messageParameters

$messageTemplate protected property

protected $messageTemplate

$propertyPath protected property

protected $propertyPath

$root protected property

protected $root