public function getFloatValidator() { if ($this->floatValidator === NULL) { $validator = new Float(); $validator->setOptions(array())->setMessages(array(Float::INVALID => $this->getErrorMessage('FLOAT::INVALID'), Float::NOT_FLOAT => $this->getErrorMessage('FLOAT::NOT_FLOAT'))); $this->setFloatValidator($validator); } return $this->floatValidator; }