CommentsInPeriodQuery.php 1021 Bytes
<?php

namespace FootyRoom\Queries\Comment;

class CommentsInPeriodQuery
{
    /**
     * @var int
     */
    protected $period;

    /**
     * @var int
     */
    protected $userId;

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

    /**
     * Constructor.
     *
     * @param int $period Number of seconds.
     * @param int $userId
     * @param string $userIp
     */
    public function __construct($period, $userId, $userIp = null)
    {
        $this->period = $period;
        $this->userId = $userId;
        $this->userIp = $userIp;
    }

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

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

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