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

		return $check_or_uncheck ? $this->check() : $this->uncheck();
	}
public function toggle($check_or_uncheck = null)
	{
		if ( !isset($check_or_uncheck) ) {
			$check_or_uncheck = !$this->isChecked();
		}

		return $check_or_uncheck ? $this->check() : $this->uncheck();
	}
public function toggle ( $ check_or_uncheck = null ) { if ( ! isset ( $ check_or_uncheck ) ) { $ check_or_uncheck = ! $ this -> isChecked ( ) ; } return $ check_or_uncheck ? $ this -> check ( ) : $ this -> uncheck ( ) ; }
Alters checkbox checked state.

@param boolean|null $check_or_uncheck Tells, how checkbox state should be altered.

@return self
Alters checkbox checked state .