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