Mike42\Escpos\PrintConnectors\CupsPrintConnector::__destruct PHP Method

__destruct() public method

Cause a NOTICE if deconstructed before the job was printed.
public __destruct ( )
    public function __destruct()
    {
        if ($this->buffer !== null) {
            trigger_error("Print connector was not finalized. Did you forget to close the printer?", E_USER_NOTICE);
        }
    }