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

__construct() public method

Constructor
Author: A. Grandt ([email protected])
Author: Greg Kappatos
public __construct ( array $config )
$config array Configuration array containing expected and written
    public function __construct(array $config){
        $this->_expected = (string)$config['expected'];
        $this->_written = (string)$config['written'];

        $message = sprintf(
            '%s %s %s %s',
            'Length Mismatch Error: Expected',
            $this->_expected,
            'bytes, wrote',
            $this->_written
        );

        parent::__construct($message);
    }