fkooman\OAuth\Client\TokenResponse::setScope PHP Method

setScope() public method

public setScope ( $scope )
    public function setScope($scope)
    {
        $scope = Scope::fromString($scope);
        if ($scope->isEmpty()) {
            throw new TokenResponseException('scope must be non empty');
        }
        $this->scope = $scope;
    }