public function match($alias, $class)
    {
        foreach (['*', $alias] as $key) {
            if ($props = $this->getNamespace($key)) {
                if ($this->matchGroup($props, $alias, $class)) {
                    return true;
                }
            }
        }

        return false;
    }