public function add($comment)
    {
        $comments = $this->session->get('comments', []);
        $comments[] = $comment;
        $this->session->set('comments', $comments);
    }
public function add($comment)
    {
        $comments = $this->session->get('comments', []);
        $comments[] = $comment;
        $this->session->set('comments', $comments);
    }
public function add ( $ comment ) { $ comments = $ this -> session -> get ( 'comments' , [ ] ) ; $ comments [ ] = $ comment ; $ this -> session -> set ( 'comments' , $ comments ) ; }
Add a new comment.

@param array $comment with all details.

@return void
Add a new comment .