Elgg\Database\Mutex::assertNamespace PHP Method

assertNamespace() private method

Assert that the namespace contains only characters [A-Za-z]
private assertNamespace ( string $namespace ) : void
$namespace string Namespace to use for the database table
return void
    private function assertNamespace($namespace)
    {
        if (!ctype_alpha($namespace)) {
            throw new InvalidParameterException("Mutex namespace can only have characters [A-Za-z].");
        }
    }