public function associateScope(ScopeEntity $scope)
    {
        if (!isset($this->scopes[$scope->getId()])) {
            $this->scopes[$scope->getId()] = $scope;
        }

        return $this;
    }
public function associateScope(ScopeEntity $scope)
    {
        if (!isset($this->scopes[$scope->getId()])) {
            $this->scopes[$scope->getId()] = $scope;
        }

        return $this;
    }
public function associateScope ( ScopeEntity $ scope ) { if ( ! isset ( $ this -> scopes [ $ scope -> getId ( ) ] ) ) { $ this -> scopes [ $ scope -> getId ( ) ] = $ scope ; } return $ this ; }
Associate a scope

@param \League\OAuth2\Server\Entity\ScopeEntity $scope

@return self
Associate a scope