Scalr_Scripting_GlobalVariables::__construct PHP Method

__construct() public method

public __construct ( integer $accountId, integer $envId, string $scope = ScopeInterface::SCOPE_SCALR )
$accountId integer
$envId integer
$scope string
    public function __construct($accountId = 0, $envId = 0, $scope = ScopeInterface::SCOPE_SCALR)
    {
        $this->crypto = \Scalr::getContainer()->crypto;
        $this->accountId = $accountId;
        $this->envId = $envId;
        $this->scope = $scope;
        $this->listScopes = [ScopeInterface::SCOPE_SCALR, ScopeInterface::SCOPE_ACCOUNT, ScopeInterface::SCOPE_ENVIRONMENT, ScopeInterface::SCOPE_ROLE, ScopeInterface::SCOPE_FARM, ScopeInterface::SCOPE_FARMROLE, ScopeInterface::SCOPE_SERVER];
        $this->db = \Scalr::getDb();
    }