src/Yandex/Market/Content/Models/Comments.php
public function add($comment)
    {
        if (is_array($comment)) {
            $this->collection[] = new Comment($comment);
        } elseif (is_object($comment) && $comment instanceof Comment) {
            $this->collection[] = $comment;
        }

        return $this;
    }
public function add($comment)
    {
        if (is_array($comment)) {
            $this->collection[] = new Comment($comment);
        } elseif (is_object($comment) && $comment instanceof Comment) {
            $this->collection[] = $comment;
        }

        return $this;
    }
public function add ( $ comment ) { if ( is_array ( $ comment ) ) { $ this -> collection [ ] = new Comment ( $ comment ) ; } elseif ( is_object ( $ comment ) && $ comment instanceof Comment ) { $ this -> collection [ ] = $ comment ; } return $ this ; }
Add comment to collection

@param Comment|array $comment

@return Comments
Add comment to collection