src/HtmlElement.php
public function addAttributes(array $attributes) : self
    {
        foreach ($attributes as $key => $value) {
            $this->attributes[$key] = $value;
        }

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

        return $this;
    }
@param array $attributes

@return $this|self