original_string: public function setAttribute($key, $value)
      {
          $key = strtolower($key);
          if ( ! is_array($value)) {
              $value = [
                  'value'       => $value,
                  'doubleQuote' => true,
              ];
          }
          $this->attr[$key] = $value;
  
          return $this;
      }
code: public function setAttribute($key, $value)
      {
          $key = strtolower($key);
          if ( ! is_array($value)) {
              $value = [
                  'value'       => $value,
                  'doubleQuote' => true,
              ];
          }
          $this->attr[$key] = $value;
  
          return $this;
      }
code_tokens: public function setAttribute ( $ key , $ value ) { $ key = strtolower ( $ key ) ; if ( ! is_array ( $ value ) ) { $ value = [ 'value' => $ value , 'doubleQuote' => true , ] ; } $ this -> attr [ $ key ] = $ value ; return $ this ; }
docstring: Set an attribute for this tag.
  
  @param string $key
  @param string|array $value
  @return $this
docstring_tokens: Set an attribute for this tag .