Newscoop\CommunityTickerBundle\Entity\CommunityTickerEvent::getEvent PHP Метод

getEvent() публичный Метод

Get event
public getEvent ( ) : string
Результат string
    public function getEvent()
    {
        return $this->event;
    }

Usage Example

Пример #1
0
 /**
  * @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();
 }