src/Framework/Form/Element/RadioSet.php
public function setValue($value)
    {
        $this->checked = $value;
        if ((null !== $this->checked) && ($this->hasChildren())) {
            foreach ($this->childNodes as $child) {
                if ($child instanceof Input\Radio) {
                    if ($child->getValue() == $this->checked) {
                        $child->check();
                    } else {
                        $child->uncheck();
                    }
                }
            }
        }
        return $this;
    }
public function setValue($value)
    {
        $this->checked = $value;
        if ((null !== $this->checked) && ($this->hasChildren())) {
            foreach ($this->childNodes as $child) {
                if ($child instanceof Input\Radio) {
                    if ($child->getValue() == $this->checked) {
                        $child->check();
                    } else {
                        $child->uncheck();
                    }
                }
            }
        }
        return $this;
    }
public function setValue ( $ value ) { $ this -> checked = $ value ; if ( ( null !== $ this -> checked ) && ( $ this -> hasChildren ( ) ) ) { foreach ( $ this -> childNodes as $ child ) { if ( $ child instanceof Input \ Radio ) { if ( $ child -> getValue ( ) == $ this -> checked ) { $ child -> check ( ) ; } else { $ child -> uncheck ( ) ; } } } } return $ this ; }
Set the checked value of the radio form elements

@param  mixed $value
@return RadioSet
Set the checked value of the radio form elements