Mike42\Escpos\PrintConnectors\WindowsPrintConnector::runWrite PHP Method

runWrite() protected method

Write data to a file. Separated out so that nothing is actually printed during test runs.
protected runWrite ( string $data, string $to ) : boolean
$data string Data to print
$to string Destination file
return boolean True if write was successful, false otherwise
    protected function runWrite($data, $to)
    {
        return file_put_contents($data, $to) !== false;
    }