original_string: public function set($property, $name, $value = null)
      {
          $set = (is_array($name)) ? $name : array($name => $value);
          switch ($property) {
              case 'errors':
                  $this->validator->errors = array_merge($this->validator->errors, $set);
                  break;
              case 'values':
              case 'header':
              case 'hidden':
                  $this->$property = array_merge($this->$property, $set);
                  break;
              case 'footer':
                  foreach ((array) $name as $value) {
                      $this->footer[] = $value;
                  }
                  break;
          }
      }
code: public function set($property, $name, $value = null)
      {
          $set = (is_array($name)) ? $name : array($name => $value);
          switch ($property) {
              case 'errors':
                  $this->validator->errors = array_merge($this->validator->errors, $set);
                  break;
              case 'values':
              case 'header':
              case 'hidden':
                  $this->$property = array_merge($this->$property, $set);
                  break;
              case 'footer':
                  foreach ((array) $name as $value) {
                      $this->footer[] = $value;
                  }
                  break;
          }
      }
code_tokens: public function set ( $ property , $ name , $ value = null ) { $ set = ( is_array ( $ name ) ) ? $ name : array ( $ name => $ value ) ; switch ( $ property ) { case 'errors' : $ this -> validator -> errors = array_merge ( $ this -> validator -> errors , $ set ) ; break ; case 'values' : case 'header' : case 'hidden' : $ this -> $ property = array_merge ( $ this -> $ property , $ set ) ; break ; case 'footer' : foreach ( ( array ) $ name as $ value ) { $ this -> footer [ ] = $ value ; } break ; } }
docstring: Set public properties.  Useful for Twig templates that can't set them directly.
  
  @param string       $property The one you want to set.  Either '**errors**' (for the Validator), '**header**', '**footer**', '**hidden**', or the '**values**' above.
  @param string|array $name     Make this an ``array($name => $value, ...)`` to set multiple values at once.
  @param mixed        $value    Only used if **$name** is a string, and you're not setting any '**footer**' HTML.
docstring_tokens: Set public properties . Useful for Twig templates that can t set them directly .