src/Question/Models/Category.php
<?php declare(strict_types=1);
namespace VSV\GVQ_API\Question\Models;
use Ramsey\Uuid\UuidInterface;
use VSV\GVQ_API\Common\ValueObjects\NotEmptyString;
class Category
{
/**
* @var UuidInterface
*/
private $id;
/**
* @var NotEmptyString
*/
private $name;
/**
* @param UuidInterface $id
* @param NotEmptyString $name
*/
public function __construct(
UuidInterface $id,
NotEmptyString $name
) {
$this->id = $id;
$this->name = $name;
}
/**
* @return UuidInterface
*/
public function getId(): UuidInterface
{
return $this->id;
}
/**
* @return NotEmptyString
*/
public function getName(): NotEmptyString
{
return $this->name;
}
}