public static function saveSchemas($destinationFolder, $schemasFolder, $schemasUrl, $content)
    {
        if (($schemasFolder === null) || empty($schemasFolder)) {
            // if null or empty schemas folder was provided
            // default schemas folder will be wsdl
            $schemasFolder = 'wsdl';
        }
        $schemasPath = rtrim($destinationFolder, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . rtrim($schemasFolder, DIRECTORY_SEPARATOR);
        // Here we must cover all possible variants
        if ((mb_strpos(mb_strtolower($schemasUrl), '.wsdl') !== false) || (mb_strpos(mb_strtolower($schemasUrl), '.xsd') !== false) || (mb_strpos(mb_strtolower($schemasUrl), '.xml') !== false)) {
            $filename = basename($schemasUrl);
        } else {
            // if $url is like http://example.com/index.php?WSDL default filename will be schema.wsdl
            $filename = 'schema.wsdl';
        }
        self::createDirectory($schemasPath);
        file_put_contents($schemasPath . DIRECTORY_SEPARATOR . $filename, $content);
        return $schemasPath . DIRECTORY_SEPARATOR . $filename;
    }