Assert\InvalidArgumentException::__construct PHP Method

__construct() public method

public __construct ( $message, $code, $propertyPath = null, $value, array $constraints = [] )
$constraints array
    public function __construct($message, $code, $propertyPath = null, $value, array $constraints = array())
    {
        parent::__construct($message, $code);
        $this->propertyPath = $propertyPath;
        $this->value = $value;
        $this->constraints = $constraints;
    }

Usage Example

Beispiel #1
0
 /**
  * @param string $message
  * @param int $code
  * @param null $propertyPath
  * @param $value
  * @param array $constraints
  */
 public function __construct($message, $code, $propertyPath = null, $value, array $constraints = array())
 {
     if (null !== $propertyPath) {
         $message = $propertyPath . ' :: ' . $message;
     }
     parent::__construct($message, $code, $propertyPath, $value, $constraints);
 }
All Usage Examples Of Assert\InvalidArgumentException::__construct