placeholderHeading = $headingLevel === null; $this->headingLevel = $this->placeholderHeading ? static::PLACEHOLDER_HEADING_LEVEL : $headingLevel; } /** * @inheritDoc */ public function getHeadingLevel(): int { return $this->headingLevel; } /** * @inheritDoc */ public function isPlaceholderHeading(): bool { return $this->placeholderHeading; } }