Symfony\Component\Validator\ConstraintViolation::__construct PHP Method

__construct() public method

public __construct ( $messageTemplate, array $messageParameters, $root, $propertyPath, $invalidValue )
$messageParameters array
    public function __construct($messageTemplate, array $messageParameters, $root, $propertyPath, $invalidValue)
    {
        $this->messageTemplate = $messageTemplate;
        $this->messageParameters = $messageParameters;
        $this->root = $root;
        $this->propertyPath = $propertyPath;
        $this->invalidValue = $invalidValue;
    }

Usage Example

 public function __construct($message, $path = '')
 {
     parent::__construct($message, $message, array(), null, $path, null);
 }