src/CodeGeneration/NamespaceHelper.php
public function basename(string $namespace): string
    {
        $strrpos = \strrpos($namespace, '\\');
        if (false === $strrpos) {
            return $namespace;
        }

        return $this->tidy(\substr($namespace, $strrpos + 1));
    }
public function basename(string $namespace): string
    {
        $strrpos = \strrpos($namespace, '\\');
        if (false === $strrpos) {
            return $namespace;
        }

        return $this->tidy(\substr($namespace, $strrpos + 1));
    }
public function basename ( string $ namespace ) : string { $ strrpos = \ strrpos ( $ namespace , '\\' ) ; if ( false === $ strrpos ) { return $ namespace ; } return $ this -> tidy ( \ substr ( $ namespace , $ strrpos + 1 ) ) ; }
Get the basename of a namespace

@param string $namespace

@return string
Get the basename of a namespace