Skip to content

ClassPageEmitter

Renders one class as a Starlight page.

The output follows the site’s own conventions: the H1 comes from the frontmatter title, so the body starts at ##; a lead paragraph precedes the first heading; internal links are root-absolute and end in a slash. Signatures are inline code rather than fenced PHP, which keeps several thousand syntax-highlighting passes out of the site build; the tables beside them carry the linked types instead.

final class ClassPageEmitter

SourceEmitter/ClassPageEmitter.php

public function __construct(ApiIndex $index, TypeLinker $linker, Markdown $markdown = new Markdown(…)): mixed

ParameterTypeDescription
$indexApiIndex
$linkerTypeLinker
$markdownMarkdown

Returns mixed

MethodDescription
emit(ClassDoc $class): EmittedArtifact

public function emit(ClassDoc $class): EmittedArtifact

ParameterTypeDescription
$classClassDoc

Returns EmittedArtifact