for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Infrastructure\Category\Query\Projections;
class CategoryView
{
/**
* @var string
*/
private $id;
private $name;
* CategoryView constructor.
*
* @param string $id
* @param string $name
public function __construct(string $id, string $name)
$this->id = $id;
$this->name = $name;
}
public function getId(): string
return $this->id;
public function getName(): string
return $this->name;
public function changeName(string $name)