/** * génère une version string * @return string */ public function __toString() { $method = 'toString' . ucFirst($this->_tag); $html = $this->{$method}(); if (!is_null($this->_tooltip)) { $html .= Vue::tooltip($this->_tooltip); } return $html; }