Jyxo\HtmlTag::setAttributes PHP Méthode

setAttributes() public méthode

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