protected function dispatchLikeEvent(LikeAction $like) { $resource = $like->getResource(); if ($resource !== null) { $event = new LogSocialmediaLikeEvent($like); return $this->dispatch($event); } }
public function __construct(LikeAction $like) { $this->details = array(); parent::__construct($like->getResource(), $this->details); }