public function getBasePart(): string
    {
        $string = str_replace($this->getLastPart(), "", $this->getFqcn());
        if (isset($string[-1]) && $string[-1] == "\\") {
            $string = substr($string, 0, -1);
        }
        
        return $string;
    }
public function getBasePart(): string
    {
        $string = str_replace($this->getLastPart(), "", $this->getFqcn());
        if (isset($string[-1]) && $string[-1] == "\\") {
            $string = substr($string, 0, -1);
        }
        
        return $string;
    }
public function getBasePart ( ) : string { $ string = str_replace ( $ this -> getLastPart ( ) , "" , $ this -> getFqcn ( ) ) ; if ( isset ( $ string [ - 1 ] ) && $ string [ - 1 ] == "\\" ) { $ string = substr ( $ string , 0 , - 1 ) ; } return $ string ; }
getLastPart - return base namespace without trailing part


@return string
getLastPart - return base namespace without trailing part