ICommentable.php 446 Bytes
<?php

namespace FootyRoom\Core\Comment;

interface ICommentable
{
    /**
     * Post new comment in the discussion.
     */
    public function comment(Comment $comment);

    /**
     * Returns id of the commentable;.
     *
     * @return string
     */
    public function getId();

    /**
     * Gets the type of the object to which this discussion belongs.
     *
     * @return string
     */
    public function getCommentableType();
}