OneCategoryQuery.php 539 Bytes
<?php

namespace FootyRoom\Queries\Category;

/**
 * Query to return a specific Category.
 */
class OneCategoryQuery
{
    /**
     * @var string
     */
    protected $categorySlug;

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

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