You are here

public function GroupSequence::count in Plug 7

Returns the number of groups in the sequence.

Return value

int The number of groups

Deprecated

Implemented for backwards compatibility with Symfony < 2.5. To be removed in Symfony 3.0.

File

lib/Symfony/validator/Symfony/Component/Validator/Constraints/GroupSequence.php, line 192

Class

GroupSequence
A sequence of validation groups.

Namespace

Symfony\Component\Validator\Constraints

Code

public function count() {
  return count($this->groups);
}