<?php
namespace Claromentis\Setup\Db\Migrations;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] ?: array()) + array("_7f628626dd1d55c71b1f" . "c0932ffd1d2c" => base64_decode("aXNfYXJyYX" . "k="), "_fb0685709848394596975" . "3e3783fec1f" => base64_decode("JTAyZC4lMDJ" . "k"), "_6596b8f6a4969f9a3f" . "6a1b22b90e9331" => base64_decode("c3ByaW50Zg" . "=="), "_8ab6ddf42088608c501fcded8995e76" . "c" => base64_decode("I" . "A" . "=" . "="), "_19c7e19970eaafa29a205777f1114" . "6af" => base64_decode("JyBzdWNjZXNzZnVs" . "bHkgZXhlY3V0ZWQ="), "_2a5789b3d6" . "7b8cd24b737" . "2ffe239c928" => base64_decode("bWQ" . "1"), "_d57b41927a5066e20f1b321222532" . "18f" => base64_decode("IE1p" . "Z3Jh" . "dGlv" . "biAn"), "_2b224a5ba17e7416fed3692e88aa8" . "013" => base64_decode("YXJyYXlfc2V" . "hcmNo"));
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;







class PersistenceTransient implements Persistence
{
    use LoggerAwareTrait;
    
    
    
    
    protected $application;
    
    
    
    
    protected $db_installed = array();
    
    
    
    
    protected $db_migrations = array();
    
    
    
    
    protected $version = null;
    
    
    
    
    
    
    
    public function __construct($_f44467aacb8a4520c7382769d24aa422, LoggerInterface $logger = null)
    {
        $this->application = $_f44467aacb8a4520c7382769d24aa422;
        $this->logger = $logger;
    }
    
    
    
    
    
    
    
    public function RecordExecuted($file_name, $code)
    {
        $_72a7209efcd9c803cef80753f412d5cd = $this->GetHash($code);
        $this->db_migrations[$this->application . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_8ab6ddf4208" . "8608c501fcde" . "d8995e76c"] . $file_name] = $_72a7209efcd9c803cef80753f412d5cd;
        $this->Log($GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_d57b41927a5066e2" . "0f1b32122253218f"] . $file_name . $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_19c7e19970eaafa" . "29a205777f11146a" . "f"]);
    }
    
    
    
    
    
    
    
    
    public function GetExecutedStatus($file_name, $code)
    {
        $_72a7209efcd9c803cef80753f412d5cd = $this->GetHash($code);
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_2b224a5ba17e7416f" . "ed3692e88aa8013"]($_72a7209efcd9c803cef80753f412d5cd, $this->db_migrations) !== false) {
            return 2;
        }
        if (isset($this->db_migrations[$this->application . $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_8ab6ddf4208860" . "8c501fcded8995e" . "76c"] . $file_name])) {
            return 1;
        }
        return 0;
    }
    
    
    
    
    
    
    
    protected function GetHash($code)
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_2a5789b3d67b" . "8cd24b7372ffe" . "239c928"]($code);
    }
    
    
    
    
    
    
    public function SetVersion($_c80a67ccfaf6579232efc354d30eb275)
    {
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_7f628626dd1d55c71b1fc093" . "2ffd1d2c"]($_c80a67ccfaf6579232efc354d30eb275)) {
            $_c80a67ccfaf6579232efc354d30eb275 = $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_6596b8f6a4969f9a3f6a1b22" . "b90e9331"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_fb06857098483" . "945969753e3783" . "fec1f"], $_c80a67ccfaf6579232efc354d30eb275[0], $_c80a67ccfaf6579232efc354d30eb275[1]);
        }
        $this->version = $_c80a67ccfaf6579232efc354d30eb275;
    }
    
    
    
    
    
    
    public function GetVersion()
    {
        return $this->version;
    }
    
    
    
    
    
    
    protected function Log($message)
    {
        if ($this->logger) {
            $this->logger->notice($message);
        }
    }
}