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;
}