1
0
mirror of synced 2024-12-13 14:56:01 +03:00

added toArray()

This commit is contained in:
zYne 2007-11-14 21:06:30 +00:00
parent b2c275583e
commit ca736ec75a

View File

@ -40,6 +40,7 @@ class Doctrine_Validator_ErrorStack extends Doctrine_Access implements Countable
* @var array
*/
protected $errors = array();
protected $classname = "";
/**
@ -123,6 +124,11 @@ class Doctrine_Validator_ErrorStack extends Doctrine_Access implements Countable
return new ArrayIterator($this->errors);
}
public function toArray()
{
return $this->errors;
}
/**
* Enter description here...
*
@ -140,4 +146,4 @@ class Doctrine_Validator_ErrorStack extends Doctrine_Access implements Countable
public function getClassname(){
return $this->classname;
}
}
}