Cassandra\DatatypeIntegrationTests::userTypeString PHP Method

userTypeString() public static method

Generate a user type name string suitable for creating a new table or user type using CQL
public static userTypeString ( $userType ) : string
$userType Cassandra\Type
return string String representation of the UserType
    public static function userTypeString($userType)
    {
        return sprintf("%s", implode("_", array_map(function ($name, $type) {
            return $name . str_replace(array("frozen", "<", " ", ",", ">"), "", $type);
        }, array_keys($userType->types()), $userType->types())));
    }