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