/** * @param string $value (optional) For instantiation of an existing Identity */ public function __construct(string $value = null) { if (null === $value) { $this->id = $this->generateId(); return; } Assertion::string($value); $this->id = $value; }
/** * @param string $value (optional) For instantiation of an existing Identity */ public function __construct(string $value = null) { if (null === $value) { $this->id = $this->generateId(); return; } Assertion::string($value); $this->id = $value; }