library/QATools/QATools/HtmlElements/Element/SelectOption.php
public function toggle($select_or_deselect = null)
	{
		if ( !isset($select_or_deselect) ) {
			$select_or_deselect = !$this->isSelected();
		}

		return $select_or_deselect ? $this->select() : $this->deselect();
	}
public function toggle($select_or_deselect = null)
	{
		if ( !isset($select_or_deselect) ) {
			$select_or_deselect = !$this->isSelected();
		}

		return $select_or_deselect ? $this->select() : $this->deselect();
	}
public function toggle ( $ select_or_deselect = null ) { if ( ! isset ( $ select_or_deselect ) ) { $ select_or_deselect = ! $ this -> isSelected ( ) ; } return $ select_or_deselect ? $ this -> select ( ) : $ this -> deselect ( ) ; }
Alters option selected state.

@param boolean|null $select_or_deselect Tells, how option state should be altered.

@return self
Alters option selected state .