validator = $validator; } /** * returns the error stack * * @return array */ public function getErrorStack() { return $this->validator->getErrorStack(); } /** * __toString * * @return string */ public function __toString() { $string = "Error stack : ".print_r($this->validator->getErrorStack(), true); return $string.parent::__toString(); } } ?>