*/ protected ?array $attributes = null; /** * @param array $attributes */ public function attributes(array $attributes): static { $this->attributes = $attributes; return $this; } /** * @param array $merge */ protected function getAttributes(array $merge = []): ComponentAttributeBag { return new ComponentAttributeBag([ ...$merge, ...($this->attributes ?? []), ]); } }