コード例 #1
0
 public function __construct($message, array $options)
 {
     parent::__construct($message);
     $this->options = $options;
 }
コード例 #2
0
 public function __construct($value, $expectedType)
 {
     parent::__construct(sprintf('Expected argument of type %s, %s given', $expectedType, gettype($value)));
 }
コード例 #3
0
 public function __construct($value, $expectedType)
 {
     parent::__construct(sprintf('Expected argument of type "%s", "%s" given', $expectedType, is_object($value) ? get_class($value) : gettype($value)));
 }
コード例 #4
0
ファイル: validator.php プロジェクト: erkie/cowl
 public function __construct($validator, $message)
 {
     parent::__construct($message);
     $this->validator = $validator;
 }