original_string: public function checkbox( $name_id, $checked = false )
      {
          $el = $this->element( 'input', $name_id, 'checkbox' )
              ->value( 1 )
              ->attribute( 'checked', $checked ? 'checked' : null );
          return $el;
      }
code: public function checkbox( $name_id, $checked = false )
      {
          $el = $this->element( 'input', $name_id, 'checkbox' )
              ->value( 1 )
              ->attribute( 'checked', $checked ? 'checked' : null );
          return $el;
      }
code_tokens: public function checkbox ( $ name_id , $ checked = false ) { $ el = $ this -> element ( 'input' , $ name_id , 'checkbox' ) -> value ( 1 ) -> attribute ( 'checked' , $ checked ? 'checked' : null ) ; return $ el ; }
docstring: Creates a checkbox.
  
  @param $name
  @param $label
  @param null $cssClasses
  @param bool $checked
  @param null $value
  @return array|HtmlElementsCollection
docstring_tokens: Creates a checkbox .