code: public function setAttributes(array $attributes)
      {
          foreach ($attributes as $attr => $value) {
              $this->setAttribute($attr, $value);
          }
  
          return $this;
      }
docs: Sets attributes
  
  @param array $attributes An array of attributes
  
  @return Tag