/** * @desc renders error * @return string */ public function __toString() { $string = ''; $string .= $this->provider; $string .= '.'; $string .= $this->scope; $string .= '.'; $string .= $this->type; if (count($this->signature) >= $this->numOfArg) { $string .= '('; $string .= implode(",", $this->signature); $string .= ');'; } else { $e = new Google_Exception("method signature has to few arguments (required: {$this->numOfArg} argument(s)). "); $e->show(); } $string .= "\n"; return $string; }
/** * show * @desc throws a formatted Exception for Config Objects * @param mixed $object Chart Config Object */ public function show($object = null) { parent::show(get_class($this), $object->getDefault()); }