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;
    }
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;
    }
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 ; }
Sets whether a group sequence provider should be used.

@param bool $active

@throws GroupDefinitionException
Sets whether a group sequence provider should be used .