original_string: public function checked($checked = [])
      {
          if ($checked instanceof Arrayable) {
              $checked = $checked->toArray();
          }
  
          // input radio checked should be unique
          $this->checked = is_array($checked) ? (array) end($checked) : (array) $checked;
  
          return $this;
      }
code: public function checked($checked = [])
      {
          if ($checked instanceof Arrayable) {
              $checked = $checked->toArray();
          }
  
          // input radio checked should be unique
          $this->checked = is_array($checked) ? (array) end($checked) : (array) $checked;
  
          return $this;
      }
code_tokens: public function checked ( $ checked = [ ] ) { if ( $ checked instanceof Arrayable ) { $ checked = $ checked -> toArray ( ) ; } // input radio checked should be unique $ this -> checked = is_array ( $ checked ) ? ( array ) end ( $ checked ) : ( array ) $ checked ; return $ this ; }
docstring: Set checked.
  
  @param array|callable|string $checked
  
  @return $this
docstring_tokens: Set checked .