public function setImage($sourceUrl = '', $linkUrl = '', $alt = '')
{
// We need either a source image or an alt to have an img tag.
if ($sourceUrl || $alt) {
$this->image = array('source' => htmlspecialchars($sourceUrl), 'link' => htmlspecialchars($linkUrl), 'alt' => $alt);
}
return $this;
}