extraHeaderAttributes[] = $attributes; } else { $this->extraHeaderAttributes = [$attributes]; } return $this; } public function getExtraHeaderAttributes(): array { $temporaryAttributeBag = new ComponentAttributeBag(); foreach ($this->extraHeaderAttributes as $extraHeaderAttributes) { $temporaryAttributeBag = $temporaryAttributeBag->merge($this->evaluate($extraHeaderAttributes)); } return $temporaryAttributeBag->getAttributes(); } public function getExtraHeaderAttributeBag(): ComponentAttributeBag { return new ComponentAttributeBag($this->getExtraHeaderAttributes()); } }