*/ protected array $text = []; /** * Get current text. * * @return array */ public function text(): array { return $this->text; } /** * Add text. */ public function addText(string $text): self { $this->text[] = $text; return $this; } /** * Set text array of extension. * * @param array $text */ public function setText(array $text): self { $this->text = $text; return $this; } /** * Determine if any text is present. */ public function hasText(): bool { return $this->text !== []; } }