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

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

Get params
public getParams ( ) : array
Результат array
    public function getParams()
    {
        return !empty($this->params) ? json_decode($this->params, true) : array();
    }

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();
 }