Newscoop\CommunityTickerBundle\Meta\MetaCommunityTicker::__construct PHP Method

__construct() public method

public __construct ( CommunityTickerEvent $feed = null )
$feed Newscoop\CommunityTickerBundle\Entity\CommunityTickerEvent
    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();
    }