for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace VSV\GVQ_API\Question\Models;
use Ramsey\Uuid\UuidInterface;
use VSV\GVQ_API\Question\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;