xhp_hphpdoc__classlike

Renders a class

class xhp_hphpdoc__classlike extends xhp_x__element implements HasXHPHelpers
use XHPHelpers
use Producer
use MarkdownHelper
Copyright
2016 Appertly
License
Apache-2.0

Static Properties

Protected
NameTypeSummary
$primitivesImmSet<string>
$thisyImmSet<string>

Instance Methods

Protected
ReturnsSignature and Description
void
appendConstants(xhp_main $main, ConstMap<string,ConstantDeclaration> $constants)
void
appendMethods(xhp_main $main, ConstMap<string,MethodDeclaration> $membersByName)
void
appendProperties(xhp_main $main, ConstMap<string,PropertyDeclaration> $membersByName)
void
appendTypeConstants(xhp_main $main, ConstMap<string,TypeConstantDeclaration> $typeConstants)
string
getFilename(ScannedBase $c)

Cleans up a filename.

DocParser

Gets the Markdown parser

Page
getPage(string $title)

Gets a page builder.

bool
isPrimitive(string $type)

Gets whether the provided type is primitive.

bool
isThisy(?ScannedTypehint $type)

Gets whether the provided typehint refers to $this

bool
isVoid(?ScannedTypehint $type)

Gets whether the provided typehint is void.

XHPRoot

Property Details

$primitives

Inherited from Producer

static protected ImmSet<string> $primitives

$thisy

Inherited from Producer

static protected ImmSet<string> $thisy

Method Details

appendConstants

protected function appendConstants(xhp_main $main, ConstMap<string,ConstantDeclaration> $constants)
Parameters
NameTypeDescription
$mainxhp_main
$constantsConstMap<string,ConstantDeclaration>

appendMethods

protected function appendMethods(xhp_main $main, ConstMap<string,MethodDeclaration> $membersByName)
Parameters
NameTypeDescription
$mainxhp_main
$membersByNameConstMap<string,MethodDeclaration>

appendProperties

protected function appendProperties(xhp_main $main, ConstMap<string,PropertyDeclaration> $membersByName)
Parameters
NameTypeDescription
$mainxhp_main
$membersByNameConstMap<string,PropertyDeclaration>

appendTypeConstants

protected function appendTypeConstants(xhp_main $main, ConstMap<string,TypeConstantDeclaration> $typeConstants)
Parameters
NameTypeDescription
$mainxhp_main
$typeConstantsConstMap<string,TypeConstantDeclaration>

getFilename

Inherited from Producer

protected function getFilename(ScannedBase $c)

Cleans up a filename.

Parameters
NameTypeDescription
$cScannedBase

The scanned token

Returns
TypeDescription
string

The cleaned up filename

getMarkdownParser

Inherited from MarkdownHelper

protected function getMarkdownParser()

Gets the Markdown parser

Returns
TypeDescription
DocParser

The Markdown parser

getPage

Inherited from Producer

protected function getPage(string $title)

Gets a page builder.

Parameters
NameTypeDescription
$titlestring

The page title

Returns
TypeDescription
Page

The page builder

isPrimitive

Inherited from Producer

protected function isPrimitive(string $type)

Gets whether the provided type is primitive.

Parameters
NameTypeDescription
$typestring

The type to test

Returns
TypeDescription
bool

true if the type is primitive.

isThisy

Inherited from Producer

protected function isThisy(?ScannedTypehint $type)

Gets whether the provided typehint refers to $this

Parameters
NameTypeDescription
$type?ScannedTypehint

The typehint to test

Returns
TypeDescription
bool

true if the typehint is thisy

isVoid

Inherited from Producer

protected function isVoid(?ScannedTypehint $type)

Gets whether the provided typehint is void.

Parameters
NameTypeDescription
$type?ScannedTypehint

The typehint to test

Returns
TypeDescription
bool

true if the typehint is void

render

protected function render()
Returns
TypeDescription
XHPRoot