3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Form\Element
;
12 use Zend\Validator\InArray
as InArrayValidator
;
14 class Radio
extends MultiCheckbox
21 protected $attributes = array(
28 * @return \Zend\Validator\ValidatorInterface
30 protected function getValidator()
32 if (null === $this->validator
) {
33 $this->validator
= new InArrayValidator(array(
34 'haystack' => $this->getValueOptionsValues(),
38 return $this->validator
;