Author.php 687 Bytes
<?php

namespace FootyRoom\Core\Comment;

class Author
{
    /**
     * @var int
     */
    protected $userId;

    /**
     * @var string
     */
    protected $name;

    /**
     * Constructor.
     *
     * @param int $userId
     * @param string $name
     */
    public function __construct($userId, $name)
    {
        $this->userId = $userId;
        $this->name = $name;
    }

    /**
     * Gets the value of userId.
     *
     * @return int
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * Gets the value of name.
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
}