Cassandra\DatatypeIntegrationTests::userTypeString PHP 메소드

userTypeString() 공개 정적인 메소드

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
리턴 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())));
    }