zendframework/zf2 — pull request #2744 by samsonasik (2012-10-12 09:57:56+00:00)
Title: access protected should be public for getValue() func

for public access, i can call :

$validator = new Zend\Validator\StringLength(array('min' => 8, 'max' => 12));
if (!validator->isValid('word')) {
echo 'Word failed: '
. $validator->getValue()
. '; its length is not between '
. $validator->min
. ' and '
. $validator->max
. "\n";
}

as follow http://zf2.readthedocs.org/en/latest/modules/zend.validator.html docs ( with currently doc, not working because it call "$validator" call "validator" without "$" and $validator->value should be $validator->getValue() in public mode