public function __toString() { $str = sprintf('<input type="%s" name="%s" value="%s" #>', $this->type, $this->name, $this->value); return $this->toString($str); }