MediaWiki master
MediaWiki\Content\CodeHighlighterOutput Class Reference

Value object for code highlighting output. More...

Public Member Functions

 __construct (private string $html, private ICodeHighlighterMetadata $metadata=new CodeHighlighterMetadata(),)
 
 getHtml ()
 
 getMetadata ()
 

Detailed Description

Value object for code highlighting output.

Stability: newable
Since
1.47

Definition at line 12 of file CodeHighlighterOutput.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Content\CodeHighlighterOutput::__construct ( private string $html,
private ICodeHighlighterMetadata $metadata = new CodeHighlighterMetadata() )
Parameters
string$htmlThe HTML representing the highlighted code
ICodeHighlighterMetadata$metadataMetadata necessary to render the highlighted code

Definition at line 18 of file CodeHighlighterOutput.php.

Member Function Documentation

◆ getHtml()

MediaWiki\Content\CodeHighlighterOutput::getHtml ( )

Definition at line 24 of file CodeHighlighterOutput.php.

◆ getMetadata()

MediaWiki\Content\CodeHighlighterOutput::getMetadata ( )

Definition at line 28 of file CodeHighlighterOutput.php.


The documentation for this class was generated from the following file: