Scalr\Api\Rest\ApiApplication::getScope PHP Méthode

getScope() public méthode

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

Usage Example

Exemple #1
0
 /**
  * Gets current API request scope
  *
  * @return string Returns scope
  */
 public function getScope()
 {
     return $this->app->getScope();
 }