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