/**
* @param CommunityTickerEvent $feed
*/
public function __construct(CommunityTickerEvent $feed = null)
{
if (!$feed) {
return;
}
$this->params = $feed->getParams();
$this->type = implode('-', explode('.', $feed->getEvent()));
$this->user = $this->getUser($feed);
$this->comment = $this->getComment();
$this->created = $this->getCreated($feed);
$this->article = $this->getArticle();
$this->topic = $this->getTopic();
}