commentId = $commentId; return $this; } /** * Build event data * * @access public * @return CommentEvent|null */ public function build() { $comment = $this->commentModel->getById($this->commentId); if (empty($comment)) { return null; } return new CommentEvent(array( 'comment' => $comment, 'task' => $this->taskFinderModel->getDetails($comment['task_id']), )); } }