Jyxo\HtmlTag::setAttributes PHP Method

setAttributes() public method

Imports attributes from the given array.
public setAttributes ( array $attributes ) : self
$attributes array Associative array of attributes and their values
return self
    public function setAttributes(array $attributes) : self
    {
        foreach ($attributes as $name => $value) {
            $this->attributes[strtolower($name)] = $value;
        }
        return $this;
    }