. */ namespace SP\Core\Messages; /** * Class MessageBase * * @package SP\Core\Messages */ abstract class MessageBase implements MessageInterface { /** * @var string */ protected $title; /** * @var array */ protected $footer = []; /** * @var array */ protected $description = []; /** * @return string */ public function getTitle() { return $this->title; } /** * @param string $title */ public function setTitle($title) { $this->title = $title; } /** * @return array */ public function getDescription() { return $this->description; } /** * @param array $description */ public function setDescription(array $description) { $this->description = $description; } /** * @param string $description */ public function addDescription($description) { $this->description[] = $description; } /** * @return string */ public function getFooter() { return $this->footer; } /** * @param array $footer */ public function setFooter(array $footer) { $this->footer = $footer; } }