public function checkScope($scope)
  {
      if ($this->OAuthResponse) {
          return $this->OAuthResponse->hasScope($scope);
      }

      return in_array($scope, $this->getScope());
  }
public function checkScope($scope)
  {
      if ($this->OAuthResponse) {
          return $this->OAuthResponse->hasScope($scope);
      }

      return in_array($scope, $this->getScope());
  }
public function checkScope ( $ scope ) { if ( $ this -> OAuthResponse ) { return $ this -> OAuthResponse -> hasScope ( $ scope ) ; } return in_array ( $ scope , $ this -> getScope ( ) ) ; }
Checks if the scope is registered.

@param  string $scope Scope name

@return bool
Checks if the scope is registered .