php/widgets/RadioInputWidget.php
public function setSelected( $state ) {
		// RadioInputWidget doesn't track its state.
		if ( $state ) {
			$this->input->setAttributes( [ 'checked' => 'checked' ] );
		} else {
			$this->input->removeAttributes( [ 'checked' ] );
		}
		return $this;
	}
public function setSelected( $state ) {
		// RadioInputWidget doesn't track its state.
		if ( $state ) {
			$this->input->setAttributes( [ 'checked' => 'checked' ] );
		} else {
			$this->input->removeAttributes( [ 'checked' ] );
		}
		return $this;
	}
public function setSelected ( $ state ) { // RadioInputWidget doesn't track its state. if ( $ state ) { $ this -> input -> setAttributes ( [ 'checked' => 'checked' ] ) ; } else { $ this -> input -> removeAttributes ( [ 'checked' ] ) ; } return $ this ; }
Set selection state of this radio button.

@param bool $state Whether the button is selected
@return $this
Set selection state of this radio button .