public function getErrorMessage() { $string = new Midori_String($this->propertyName); return sprintf($this->message, $string->titleize(true), $this->min, $this->max); }