for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Igni\Storage\Id;
use Igni\Storage\Id;
/**
* @property Id $id
*/
trait AutoGenerateId
{
public function getId(): Id
if ($this->id === null) {
$this->id = new Uuid();
}
return $this->id;