public function setAttributes(array $attributes) : Tag
    {
        foreach ($attributes as $name => $value) {
            $this->attributes[strtolower($name)] = (string) $value;
        }

        return $this;
    }
public function setAttributes(array $attributes) : Tag
    {
        foreach ($attributes as $name => $value) {
            $this->attributes[strtolower($name)] = (string) $value;
        }

        return $this;
    }
public function setAttributes ( array $ attributes ) : Tag { foreach ( $ attributes as $ name => $ value ) { $ this -> attributes [ strtolower ( $ name ) ] = ( string ) $ value ; } return $ this ; }
Sets several attributes.

@param array $attributes The attributes, as an associative array of names to values.

@return Tag This instance, for chaining.
Sets several attributes .