library/QATools/QATools/HtmlElements/Element/RadioGroup.php
public function getSelectedButton()
	{
		/** @var $button RadioButton */
		foreach ( $this as $button ) {
			if ( $button->isSelected() ) {
				return $button;
			}
		}

		throw new RadioGroupException('No selected button', RadioGroupException::TYPE_NOT_SELECTED);
	}
public function getSelectedButton()
	{
		/** @var $button RadioButton */
		foreach ( $this as $button ) {
			if ( $button->isSelected() ) {
				return $button;
			}
		}

		throw new RadioGroupException('No selected button', RadioGroupException::TYPE_NOT_SELECTED);
	}
public function getSelectedButton ( ) { /** @var $button RadioButton */ foreach ( $ this as $ button ) { if ( $ button -> isSelected ( ) ) { return $ button ; } } throw new RadioGroupException ( 'No selected button' , RadioGroupException :: TYPE_NOT_SELECTED ) ; }
Returns selected radio button.

@return RadioButton Element, that represents selected radio button or {@code null} if no radio buttons are selected.
@throws RadioGroupException When no radio button is selected.
Returns selected radio button .