static function fromString(string $string): self
    {
        $string = str_replace("/", "\\", $string);
        $string = preg_replace("#(\\\\){2,}#", "\\", $string);
        if (substr($string, -1, 1) == "\\") {
            $string = substr($string, 0, -1);
        }
        
        return new self($string);
    }
static function fromString(string $string): self
    {
        $string = str_replace("/", "\\", $string);
        $string = preg_replace("#(\\\\){2,}#", "\\", $string);
        if (substr($string, -1, 1) == "\\") {
            $string = substr($string, 0, -1);
        }
        
        return new self($string);
    }
static function fromString ( string $ string ) : self { $ string = str_replace ( "/" , "\\" , $ string ) ; $ string = preg_replace ( "#(\\\\){2,}#" , "\\" , $ string ) ; if ( substr ( $ string , - 1 , 1 ) == "\\" ) { $ string = substr ( $ string , 0 , - 1 ) ; } return new self ( $ string ) ; }
fromString - will replace multiple, ending slashes


@param string $string

@return FQCN
fromString - will replace multiple ending slashes