This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Validator/ConstraintViolation.php

39 lines
747 B
PHP
Raw Normal View History

<?php
namespace Symfony\Component\Validator;
class ConstraintViolation
{
protected $message;
protected $root;
protected $propertyPath;
protected $invalidValue;
public function __construct($message, $root, $propertyPath, $invalidValue)
{
$this->message = $message;
$this->root = $root;
$this->propertyPath = $propertyPath;
$this->invalidValue = $invalidValue;
}
public function getMessage()
{
return $this->message;
}
public function getRoot()
{
return $this->root;
}
public function getPropertyPath()
{
return $this->propertyPath;
}
public function getInvalidValue()
{
return $this->invalidValue;
}
}