CommentEdited.php 808 Bytes
<?php

namespace FootyRoom\Core\Comment;

use FootyRoom\User\User;

class CommentEdited
{
    /**
     * @var \FootyRoom\Core\Comment\Comment
     */
    public $comment;

    /**
     * @var string
     */
    public $oldContent;

    /**
     * @var string
     */
    public $oldHtml;

    /**
     * @var \FootyRoom\User\User
     */
    public $editor;

    /**
     * Constructor.
     *
     * @param \FootyRoom\Core\Comment\Comment $comment
     * @param string $oldContent
     * @param string $oldHtml
     * @param \FootyRoom\User\User $editor
     */
    public function __construct(Comment $comment, $oldContent, $oldHtml, User $editor)
    {
        $this->comment = $comment;
        $this->oldContent = $oldContent;
        $this->oldHtml = $oldHtml;
        $this->editor = $editor;
    }
}