Lullabot/mpx-php

View on GitHub
src/DataService/Media/CategoryInfo.php

Summary

Maintainability
A
0 mins
Test Coverage
B
85%
<?php

namespace Lullabot\Mpx\DataService\Media;

class CategoryInfo implements \Stringable
{
    /**
     * The Category object's fullTitle value.
     *
     * @var string
     */
    protected $name;

    /**
     * The Category object's label value.
     *
     * @var string
     */
    protected $label;

    /**
     * The Category object's scheme value.
     *
     * @var string
     */
    protected $scheme;

    /**
     * Returns the Category object's fullTitle value.
     */
    public function getName(): ?string
    {
        return $this->name;
    }

    /**
     * Set the Category object's fullTitle value.
     */
    public function setName(?string $name)
    {
        $this->name = $name;
    }

    /**
     * Returns the Category object's label value.
     */
    public function getLabel(): ?string
    {
        return $this->label;
    }

    /**
     * Set the Category object's label value.
     */
    public function setLabel(?string $label)
    {
        $this->label = $label;
    }

    /**
     * Returns the Category object's scheme value.
     */
    public function getScheme(): ?string
    {
        return $this->scheme;
    }

    /**
     * Set the Category object's scheme value.
     */
    public function setScheme(?string $scheme)
    {
        $this->scheme = $scheme;
    }

    /**
     * Convert this object the category name.
     */
    public function __toString(): string
    {
        return (string) $this->getName();
    }
}