public function writeFile(
        string $content,
        string $filename,
        string $encoding = Encoder::DEFAULT_BYTE_MODE_ECODING,
        ?ErrorCorrectionLevel $ecLevel = null
    ) : void {
        file_put_contents($filename, $this->writeString($content, $encoding, $ecLevel));
    }
public function writeFile(
        string $content,
        string $filename,
        string $encoding = Encoder::DEFAULT_BYTE_MODE_ECODING,
        ?ErrorCorrectionLevel $ecLevel = null
    ) : void {
        file_put_contents($filename, $this->writeString($content, $encoding, $ecLevel));
    }
public function writeFile ( string $ content , string $ filename , string $ encoding = Encoder :: DEFAULT_BYTE_MODE_ECODING , ? ErrorCorrectionLevel $ ecLevel = null ) : void { file_put_contents ( $ filename , $ this -> writeString ( $ content , $ encoding , $ ecLevel ) ) ; }
Writes QR code to a file.

@see Writer::writeString()
Writes QR code to a file .