public function __construct() { parent::__construct('Unknown annotation adapter'); }
/** * @param string $json */ public function __construct($json) { $this->setJson($json); $message = 'Json "' . $this->getJson() . '" is invalid'; parent::__construct($message); }
/** * @param string $field * @param string $class */ public function __construct($field, $class) { $this->setField($field)->setClass($class); parent::__construct($this->createMessage()); }
/** * @param mixed $value */ public function __construct($value) { $this->setValue($value); $message = 'Value is unsupported. Must be json string, object or array; ' . $this->getValueType() . ' given'; parent::__construct($message); }