src/PrestashopWebServiceLibrary.php
public function isPrestashopVersionSupported($version)
    {
        if (version_compare($version, self::PS_COMPATIBLE_VERSION_MIN, '>=') === false ||
            version_compare($version, self::PS_COMPATIBLE_VERSION_MAX, '<=') === false
        ) {
            $exception = 'This library is not compatible with this version of PrestaShop. ';
            $exception.= 'Please upgrade/downgrade this library';
            throw new PrestashopWebServiceException($exception);
        }
    }
public function isPrestashopVersionSupported($version)
    {
        if (version_compare($version, self::PS_COMPATIBLE_VERSION_MIN, '>=') === false ||
            version_compare($version, self::PS_COMPATIBLE_VERSION_MAX, '<=') === false
        ) {
            $exception = 'This library is not compatible with this version of PrestaShop. ';
            $exception.= 'Please upgrade/downgrade this library';
            throw new PrestashopWebServiceException($exception);
        }
    }
public function isPrestashopVersionSupported ( $ version ) { if ( version_compare ( $ version , self :: PS_COMPATIBLE_VERSION_MIN , '>=' ) === false || version_compare ( $ version , self :: PS_COMPATIBLE_VERSION_MAX , '<=' ) === false ) { $ exception = 'This library is not compatible with this version of PrestaShop. ' ; $ exception .= 'Please upgrade/downgrade this library' ; throw new PrestashopWebServiceException ( $ exception ) ; } }
Throws exception if prestashop version is not supported
@param int $version The prestashop version
@throws PrestashopWebServiceException
Throws exception if prestashop version is not supported