public function hasScope($mToken, $sScope)
    {
        if (is_numeric($mToken)) {
            $oToken = $this->getById($mToken);
        } else {
            $oToken = $mToken;
        }

        if ($oToken) {
            return in_array($sScope, $oToken->scope);
        } else {
            return false;
        }
    }
public function hasScope($mToken, $sScope)
    {
        if (is_numeric($mToken)) {
            $oToken = $this->getById($mToken);
        } else {
            $oToken = $mToken;
        }

        if ($oToken) {
            return in_array($sScope, $oToken->scope);
        } else {
            return false;
        }
    }
public function hasScope ( $ mToken , $ sScope ) { if ( is_numeric ( $ mToken ) ) { $ oToken = $ this -> getById ( $ mToken ) ; } else { $ oToken = $ mToken ; } if ( $ oToken ) { return in_array ( $ sScope , $ oToken -> scope ) ; } else { return false ; } }
Determines whether a token has a given scope

@param  mixed  $mToken The token object, or a token ID
@param  string $sScope The scope(s) to check for

@return boolean
Determines whether a token has a given scope