public function getScope() { return isset($this->env) ? ScopeInterface::SCOPE_ENVIRONMENT : (isset($this->user) ? ScopeInterface::SCOPE_ACCOUNT : ScopeInterface::SCOPE_SCALR); }
/** * Gets current API request scope * * @return string Returns scope */ public function getScope() { return $this->app->getScope(); }