public function toHTML($html_builder_class = '\\Twitter\\Helpers\\HTMLBuilder')
{
// test for invalid passed class
if (!(class_exists($html_builder_class) && method_exists($html_builder_class, 'anchorElement'))) {
return '';
}
$web_profile_url = $this->getWebProfileURL();
if (!$web_profile_url) {
return '';
}
return $html_builder_class::anchorElement($web_profile_url, '@' . $this->getUsername(), array('class' => static::HTML_CLASS), $this->toArray());
}