PHPZip\Zip\Exception\BufferNotEmpty::__construct PHP Method

__construct() public method

Constructor
Author: A. Grandt ([email protected])
Author: Greg Kappatos
public __construct ( array $config )
$config array Configuration array containing outputBuffer and fileName
    public function __construct(array $config){
        $this->_outputBuffer = $config['outputBuffer'];
        $this->_fileName = isset($config['fileName']) ? $config['fileName'] : null;

        $message = is_null($this->_fileName) ? '' : "Unable to send '{$this->_fileName}'. ";
        $message .= "Output buffer contains the following text (typically warning or errors):\n{$this->_outputBuffer}";

        parent::__construct($message);
    }