code: public function addAttributes(array $attributes) : self
      {
          foreach ($attributes as $key => $value) {
              $this->attributes[$key] = $value;
          }
  
          return $this;
      }
docs: @param array $attributes
  
  @return $this|self