original_string: public function generate(): string
      {
          $condID = (string)$this->attributes['data-conditional-id'];
          $getState = $this->vHandler->get->get($condID.'_state', Variables::TYPE_INT) == 1;
          $postState = $this->vHandler->post->get($condID.'_state', Variables::TYPE_INT) == 1;
          $visible = $getState || $postState;
          $this->attributes['class'] .= $visible === true ? ' visible' : '';
  
          $elements = [];
          $elements[] = Controlls\Text::inputHidden($condID.'_state', (int)$visible, ['method-get' => true, 'id' => '']);
          foreach ($this->elements as $element) {
              /** @noinspection PhpUndefinedMethodInspection */
              $elements[] = $element->generate();
          }
          return Tags::div($elements, $this->attributes);
      }
code: public function generate(): string
      {
          $condID = (string)$this->attributes['data-conditional-id'];
          $getState = $this->vHandler->get->get($condID.'_state', Variables::TYPE_INT) == 1;
          $postState = $this->vHandler->post->get($condID.'_state', Variables::TYPE_INT) == 1;
          $visible = $getState || $postState;
          $this->attributes['class'] .= $visible === true ? ' visible' : '';
  
          $elements = [];
          $elements[] = Controlls\Text::inputHidden($condID.'_state', (int)$visible, ['method-get' => true, 'id' => '']);
          foreach ($this->elements as $element) {
              /** @noinspection PhpUndefinedMethodInspection */
              $elements[] = $element->generate();
          }
          return Tags::div($elements, $this->attributes);
      }
code_tokens: public function generate ( ) : string { $ condID = ( string ) $ this -> attributes [ 'data-conditional-id' ] ; $ getState = $ this -> vHandler -> get -> get ( $ condID . '_state' , Variables :: TYPE_INT ) == 1 ; $ postState = $ this -> vHandler -> post -> get ( $ condID . '_state' , Variables :: TYPE_INT ) == 1 ; $ visible = $ getState || $ postState ; $ this -> attributes [ 'class' ] .= $ visible === true ? ' visible' : '' ; $ elements = [ ] ; $ elements [ ] = Controlls \ Text :: inputHidden ( $ condID . '_state' , ( int ) $ visible , [ 'method-get' => true , 'id' => '' ] ) ; foreach ( $ this -> elements as $ element ) { /** @noinspection PhpUndefinedMethodInspection */ $ elements [ ] = $ element -> generate ( ) ; } return Tags :: div ( $ elements , $ this -> attributes ) ; }
docstring: Generates from conditional and returns it
  
  @return string
docstring_tokens: Generates from conditional and returns it