This commit is contained in:
Romain Neutron
2012-04-26 00:55:53 +02:00
parent edbfff226e
commit ade22295ad
631 changed files with 92375 additions and 101763 deletions

View File

@@ -17,22 +17,20 @@
*/
class Setup_ConstraintsIterator implements IteratorAggregate
{
protected $constraints = array();
protected $constraints = array();
public function __construct(Array $constraints)
{
$this->constraints = $constraints;
}
public function __construct(Array $constraints)
{
$this->constraints = $constraints;
}
public function add(Setup_Constraint $constraint)
{
$this->constraints[] = $constraint;
}
public function getIterator()
{
return new ArrayIterator($this->constraints);
}
public function add(Setup_Constraint $constraint)
{
$this->constraints[] = $constraint;
}
public function getIterator()
{
return new ArrayIterator($this->constraints);
}
}