original_string: public function &setContent($content)
      {
          // Set element type by analyzing the element
          switch (true) {
  
              case ($content instanceof FormGroup):
                  $this->type = 'group';
                  break;
  
              case ($content instanceof ControlsCollectionInterface):
                  $this->type = 'collection';
                  break;
  
              case ($content instanceof AbstractForm):
                  $this->type = 'control';
                  break;
  
              case ($content instanceof AbstractHtml):
                  $this->type = 'factory';
                  break;
  
              default:
                  $this->type = 'html';
          }
  
          $this->content = $content;
  
          return $content;
      }
code: public function &setContent($content)
      {
          // Set element type by analyzing the element
          switch (true) {
  
              case ($content instanceof FormGroup):
                  $this->type = 'group';
                  break;
  
              case ($content instanceof ControlsCollectionInterface):
                  $this->type = 'collection';
                  break;
  
              case ($content instanceof AbstractForm):
                  $this->type = 'control';
                  break;
  
              case ($content instanceof AbstractHtml):
                  $this->type = 'factory';
                  break;
  
              default:
                  $this->type = 'html';
          }
  
          $this->content = $content;
  
          return $content;
      }
code_tokens: public function & setContent ( $ content ) { // Set element type by analyzing the element switch ( true ) { case ( $ content instanceof FormGroup ) : $ this -> type = 'group' ; break ; case ( $ content instanceof ControlsCollectionInterface ) : $ this -> type = 'collection' ; break ; case ( $ content instanceof AbstractForm ) : $ this -> type = 'control' ; break ; case ( $ content instanceof AbstractHtml ) : $ this -> type = 'factory' ; break ; default : $ this -> type = 'html' ; } $ this -> content = $ content ; return $ content ; }
docstring: Sets the element.
  
  @param sting|AbstractForm|AbstractHtml $element
  
  @return Ambigous <\Core\Html\AbstractForm, \Core\Html\AbstractHtml, \Core\Html\FormDesigner\FormGroup>
docstring_tokens: Sets the element .