public function getAttributeString() { $attrstrs = []; foreach ($this->attributes as $key => $val) { $attrstrs[] = $key . '=' . $val; } return implode(';', $attrstrs); }