<?php
namespace Claromentis\OAuth2\Repository;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] ?: array()) + array("_f7beeb9fb5cd0f13e" . "4c6c526a309a672" => base64_decode("U0VMRUNUIGlkLCBkZXNjcmlwdGlvbiBGUk9NIG9hdXRoX3" . "Njb3BlcyBXSEVSRSBpZCBlcTpzdHI6aWRlbnRpZmllciBP" . "UkRFUiBCWSBpZCBBU0M="), "_5e30c4717ced36cff9e" . "93e19a5c576cc" => base64_decode("aXNfc3Ry" . "aW5n"), "_db6f0ba0791e9a635407659" . "a9fe04e40" => base64_decode("aXNfb2" . "JqZWN0"), "_28fd57f750dbb5ffb3ffad3a8" . "88358a9" => base64_decode("ZGVzY3JpcHRpb24" . "="));
use Claromentis\Core\DAL;
use Claromentis\OAuth2\Entity\ScopeEntity;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
class ScopeRepository implements ScopeRepositoryInterface
{
    
    
    protected $db;
    public function __construct(DAL\Db $db)
    {
        $this->db = $db;
    }
    
    
    
    
    
    
    
    
    public function getScopeEntityByIdentifier($_d23966c4f4dfe54d80aec545006bc4b0)
    {
        
        
        if ($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_db6f0ba0791e9a635" . "407659a9fe04e40"]($_d23966c4f4dfe54d80aec545006bc4b0)) {
            $_d23966c4f4dfe54d80aec545006bc4b0 = $_d23966c4f4dfe54d80aec545006bc4b0->id;
        } elseif (!$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_5e30c471" . "7ced36cff" . "9e93e19a5" . "c576cc"]($_d23966c4f4dfe54d80aec545006bc4b0)) {
            return null;
        }
        $_189840d11056515e52402d1412a0b6e4 = $this->db->query($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_f7beeb9f" . "b5cd0f13e" . "4c6c526a3" . "09a672"], $_d23966c4f4dfe54d80aec545006bc4b0);
        
        
        
        if ($_189840d11056515e52402d1412a0b6e4->numRows() === 0) {
            return null;
        }
        $data = $_189840d11056515e52402d1412a0b6e4->fetchArray();
        $_8c618b28cb8e33e9ba8b291781620142 = new ScopeEntity();
        $_8c618b28cb8e33e9ba8b291781620142->setIdentifier($_d23966c4f4dfe54d80aec545006bc4b0);
        $_8c618b28cb8e33e9ba8b291781620142->setDescription($data[$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_28fd57f750dbb5ff" . "b3ffad3a888358a9"]]);
        return $_8c618b28cb8e33e9ba8b291781620142;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    public function finalizeScopes(array $_1db7fbca1ae6df9bac55436bafef3d7f, $_3e82311678b877192b0254cc21f9c442, ClientEntityInterface $_c38c68b4ca2c95f4fee8cf2ea909864e, $_d425367da39a64e2bd3a0b150bd868ac = null)
    {
        return $_1db7fbca1ae6df9bac55436bafef3d7f;
    }
}