$inputFilter->add($factory->createInput(array(
'name' => 'amount',
'validators' => array(
array(
'name' => 'string_length',
'options' => array(
'max' => 60,
'messages' => array(
\Zend\Validator\StringLength::TOO_LONG => 'Title should be less than %max% characters',
),
如何为此代码添加数字验证?