protected function resolveType(string $class): string
    {
        $name = str_replace(['\\', '_'], $this->delimiter, ucwords($class, '\\_'));

        if ($this->fullName) {
            return $name;
        }

        $pos = strrpos($name, $this->delimiter);

        if ($pos === false) {
            return $name;
        }

        return substr($name, $pos + 1);
    }