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

__construct() public method

Constructor
Author: A. Grandt ([email protected])
Author: Greg Kappatos
public __construct ( array $config )
$config array Configuration array containing appName, appVersion and minVersion (PHP)
    public function __construct(array $config){
        $this->_minVersion = (string)$config['minVersion'];
        $this->_currentVersion = (string)phpversion();

        $message =  sprintf(
            '%s %s %s %s %s (%s %s).',
            $config['appName'],
            (string)$config['appVersion'],
            'requires PHP version',
            $this->_minVersion,
            'or above',
            $this->_currentVersion,
            'detected'
        );

        parent::__construct($message);
    }