Jyxo\HtmlTag::setAttributes PHP 메소드

setAttributes() 공개 메소드

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