[Validator] Removed unused class GroupChain

This commit is contained in:
Bernhard Schussek 2011-01-19 15:34:55 +01:00
parent eed3c9a48c
commit d52ae8e103

View File

@ -1,46 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator;
use Symfony\Component\Validator\Mapping\ClassMetadata;
class GroupChain
{
protected $groups = array();
protected $groupSequences = array();
public function addGroup($group)
{
$this->groups[$group] = $group;
}
public function addGroupSequence(array $groups)
{
if (count($groups) == 0) {
throw new \InvalidArgumentException('A group sequence must contain at least one group');
}
if (!in_array($groups, $this->groupSequences, true)) {
$this->groupSequences[] = $groups;
}
}
public function getGroups()
{
return $this->groups;
}
public function getGroupSequences()
{
return $this->groupSequences;
}
}