public function getScopes()
    {
        if ($this->scopes === null) {
            $this->scopes = $this->formatScopes(
                $this->server->getAccessTokenStorage()->getScopes($this)
            );
        }

        return $this->scopes;
    }
public function getScopes()
    {
        if ($this->scopes === null) {
            $this->scopes = $this->formatScopes(
                $this->server->getAccessTokenStorage()->getScopes($this)
            );
        }

        return $this->scopes;
    }
public function getScopes ( ) { if ( $ this -> scopes === null ) { $ this -> scopes = $ this -> formatScopes ( $ this -> server -> getAccessTokenStorage ( ) -> getScopes ( $ this ) ) ; } return $ this -> scopes ; }
Return all scopes associated with the access token

@return \League\OAuth2\Server\Entity\ScopeEntity[]
Return all scopes associated with the access token