public function __construct($id = null) { $this->id = null === $id ? Uuid::uuid4()->toString() : $id; }