src/RadioButtonCollection.php
public function addRadioButton(RadioButtonInterface $radioButton): void
    {
        $radioButton->setName($this->getName());
        $radioButton->setSelected($radioButton->getValue() === $this->value);

        $this->radioButtons[] = $radioButton;
    }
public function addRadioButton(RadioButtonInterface $radioButton): void
    {
        $radioButton->setName($this->getName());
        $radioButton->setSelected($radioButton->getValue() === $this->value);

        $this->radioButtons[] = $radioButton;
    }
public function addRadioButton ( RadioButtonInterface $ radioButton ) : void { $ radioButton -> setName ( $ this -> getName ( ) ) ; $ radioButton -> setSelected ( $ radioButton -> getValue ( ) === $ this -> value ) ; $ this -> radioButtons [ ] = $ radioButton ; }
Adds a radio button.

@since 1.0.0

@param RadioButtonInterface $radioButton The radio button.
Adds a radio button .