original_string: public function setGroupSequenceProvider($active)
      {
          if ($this->hasGroupSequence()) {
              throw new GroupDefinitionException('Defining a group sequence provider is not allowed with a static group sequence');
          }
  
          if (!$this->getReflectionClass()->implementsInterface('Symfony\Component\Validator\GroupSequenceProviderInterface')) {
              throw new GroupDefinitionException(sprintf('Class "%s" must implement GroupSequenceProviderInterface', $this->name));
          }
  
          $this->groupSequenceProvider = $active;
      }
code: public function setGroupSequenceProvider($active)
      {
          if ($this->hasGroupSequence()) {
              throw new GroupDefinitionException('Defining a group sequence provider is not allowed with a static group sequence');
          }
  
          if (!$this->getReflectionClass()->implementsInterface('Symfony\Component\Validator\GroupSequenceProviderInterface')) {
              throw new GroupDefinitionException(sprintf('Class "%s" must implement GroupSequenceProviderInterface', $this->name));
          }
  
          $this->groupSequenceProvider = $active;
      }
code_tokens: public function setGroupSequenceProvider ( $ active ) { if ( $ this -> hasGroupSequence ( ) ) { throw new GroupDefinitionException ( 'Defining a group sequence provider is not allowed with a static group sequence' ) ; } if ( ! $ this -> getReflectionClass ( ) -> implementsInterface ( 'Symfony\Component\Validator\GroupSequenceProviderInterface' ) ) { throw new GroupDefinitionException ( sprintf ( 'Class "%s" must implement GroupSequenceProviderInterface' , $ this -> name ) ) ; } $ this -> groupSequenceProvider = $ active ; }
docstring: Sets whether a group sequence provider should be used.
  
  @param bool $active
  
  @throws GroupDefinitionException
docstring_tokens: Sets whether a group sequence provider should be used .