PHP Class Symfony\Component\Validator\ConstraintViolation

Author: Bernhard Schussek ([email protected])
Inheritance: implements Symfony\Component\Validator\ConstraintViolationInterface
Mostrar archivo 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_oe property

protected $invalidValue

$messageParameters protected_oe property

protected $messageParameters

$messageTemplate protected_oe property

protected $messageTemplate

$propertyPath protected_oe property

protected $propertyPath

$root protected_oe property

protected $root