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);
    }
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);
    }
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 ) ; }
Resolve type by class

@param  string $class
@return string
Resolve type by class