public function generate(string $content = null): string
    {
        if (empty($content)) {
            $guid = Uuid::uuid4();
        } else {
            $guid = Uuid::uuid5(Uuid::NAMESPACE_DNS, $content);
        }

        return $guid->toString();
    }
public function generate(string $content = null): string
    {
        if (empty($content)) {
            $guid = Uuid::uuid4();
        } else {
            $guid = Uuid::uuid5(Uuid::NAMESPACE_DNS, $content);
        }

        return $guid->toString();
    }
public function generate ( string $ content = null ) : string { if ( empty ( $ content ) ) { $ guid = Uuid :: uuid4 ( ) ; } else { $ guid = Uuid :: uuid5 ( Uuid :: NAMESPACE_DNS , $ content ) ; } return $ guid -> toString ( ) ; }
Generates a GUID, optionally from specified Content.

@param string|null $content

@return string
Generates a GUID optionally from specified Content .