*/
class ConstraintViolation implements ConstraintViolationInterface
{
- /**
- * @var string
- */
private $message;
-
- /**
- * @var string
- */
private $messageTemplate;
-
- /**
- * @var array
- */
private $parameters;
-
- /**
- * @var int|null
- */
private $plural;
-
- /**
- * @var mixed
- */
private $root;
-
- /**
- * @var string
- */
private $propertyPath;
-
- /**
- * @var mixed
- */
private $invalidValue;
-
- /**
- * @var Constraint|null
- */
private $constraint;
-
- /**
- * @var mixed
- */
private $code;
-
- /**
- * @var mixed
- */
private $cause;
/**
*/
public function __toString()
{
- if (is_object($this->root)) {
- $class = 'Object('.get_class($this->root).')';
- } elseif (is_array($this->root)) {
+ if (\is_object($this->root)) {
+ $class = 'Object('.\get_class($this->root).')';
+ } elseif (\is_array($this->root)) {
$class = 'Array';
} else {
$class = (string) $this->root;