You are here

public function ClassMetadata::hasGroupSequence in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::hasGroupSequence()

Returns whether the "Default" group is overridden by a group sequence.

If it is, you can access the group sequence with {@link getGroupSequence()}.

Return value

bool Returns true if the "Default" group is overridden

Overrides ClassMetadataInterface::hasGroupSequence

See also

\Symfony\Component\Validator\Constraints\GroupSequence

2 calls to ClassMetadata::hasGroupSequence()
ClassMetadata::accept in vendor/symfony/validator/Mapping/ClassMetadata.php
ClassMetadata::setGroupSequenceProvider in vendor/symfony/validator/Mapping/ClassMetadata.php
Sets whether a group sequence provider should be used.

File

vendor/symfony/validator/Mapping/ClassMetadata.php, line 480

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

public function hasGroupSequence() {
  return $this->groupSequence && count($this->groupSequence->groups) > 0;
}