ForumPostsInPeriodQuery.php 759 Bytes
<?php

namespace FootyRoom\Queries\Post;

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

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

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

    /**
     * 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;
    }
}