Ejemplo n.º 1
0
 /**
  * @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;
 }