<?php
/**
 * @author Aitoc Team
 * @copyright Copyright (c) 2020 Aitoc (https://www.aitoc.com)
 * @package Aitoc_PreOrders
 */

/**
 * Copyright © 2018 Aitoc. All rights reserved.
 * Developed by Alex Yakimovich
 */

namespace Aitoc\PreOrders\Setup;

use Magento\Framework\Setup\ModuleContextInterface;

class AbstractUpgrade
{
    /**
     * @var ModuleContextInterface
     */
    protected $context;

    /**
     * @param string $version
     * @return bool
     */
    protected function checkVersion($version)
    {
        return version_compare($this->context->getVersion(), $version, '<');
    }
}