__construct() public method

public __construct ( $message, $code, $propertyPath = null, $value, array $constraints = [] )
$constraints array
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);
 }
 public function __construct($message, $code, $propertyPath = null, $value, array $constraints = array())
 {
     // @codingStandardsIgnoreEnd
     if ($propertyPath !== null && strpos($message, $propertyPath) === false) {
         $message = sprintf('Invalid argument given for "%s": %s', $propertyPath, $message);
     }
     parent::__construct($message, $code, $propertyPath, $value, $constraints);
 }
Beispiel #3
0
 public function __construct($message, $code, $propertyPath = null, $value = null, array $constraints = array())
 {
     parent::__construct($message, $code, $propertyPath, $value, $constraints);
 }