original_string: public function checkbox($key, $text, $label=null, array $attr=[]) {
  		$this->hiddenField($key, '0');
  		$attr['text'] = $text;
  		$field = $this->factory('checkbox', $key, $label, $attr);
  		return $this->addField($field);
  	}
code: public function checkbox($key, $text, $label=null, array $attr=[]) {
  		$this->hiddenField($key, '0');
  		$attr['text'] = $text;
  		$field = $this->factory('checkbox', $key, $label, $attr);
  		return $this->addField($field);
  	}
code_tokens: public function checkbox ( $ key , $ text , $ label = null , array $ attr = [ ] ) { $ this -> hiddenField ( $ key , '0' ) ; $ attr [ 'text' ] = $ text ; $ field = $ this -> factory ( 'checkbox' , $ key , $ label , $ attr ) ; return $ this -> addField ( $ field ) ; }
docstring: Checkbox field.
docstring_tokens: Checkbox field .