images[] = '
"';
}
/**
* @param $title
*/
public function generateTitle($title) {
$this->title = '
' . $title . '
';
}
/**
* @param $description
*/
public function generateDescription($description) {
$this->description = '' . $description. '
';
}
/**
*
*/
private function generateImageMarkup() {
foreach ($this->images as $image) {
$this->imageMarkup .= $image;
}
}
/**
* @return string
*/
public function getPreview() {
if ($this->imageMarkup === null) {
$this->generateImageMarkup();
}
return $this->wrap($this->title . $this->description . $this->imageMarkup);
}
private function wrap($string) {
return '' . $string . '
';
}
}