PHPReferenceNode
extends InlineNode
in package
FinalYes
Table of Contents
Properties
- $classes : array<string|int, string>
- $options : array<string, scalar|null>
- $value : TValue
- $descriptor : Descriptor|null
- $fqsen : Fqsen
- $nodeType : string
- $text : string|null
Methods
- __construct() : mixed
- getClasses() : array<string|int, string>
- getClassesString() : string
- getDescriptor() : Descriptor|null
- getFqsen() : Fqsen
- getNodeType() : string
- getOption() : mixed
- getOptions() : array<string, scalar|null>
- getText() : string
- getType() : string
- getValue() : TValue
- hasOption() : bool
- setClasses() : void
- Normalizes class names following the rules of identifier-normalization
- setValue() : void
- toString() : string
- withDescriptor() : self
- withKeepExistingOptions() : static
- Adds $options as default options without overriding any options already set.
- withOptions() : static
Properties
$classes
protected
array<string|int, string>
$classes
= []
$options
protected
array<string, scalar|null>
$options
= []
$value
protected
TValue
$value
$descriptor
private
Descriptor|null
$descriptor
= null
$fqsen read-only
private
Fqsen
$fqsen
$nodeType read-only
private
string
$nodeType
$text read-only
private
string|null
$text
= null
Methods
__construct()
public
__construct(string $nodeType, Fqsen $fqsen[, string|null $text = null ]) : mixed
Parameters
- $nodeType : string
- $fqsen : Fqsen
- $text : string|null = null
getClasses()
public
getClasses() : array<string|int, string>
Return values
array<string|int, string>getClassesString()
public
getClassesString() : string
Return values
stringgetDescriptor()
public
getDescriptor() : Descriptor|null
Return values
Descriptor|nullgetFqsen()
public
getFqsen() : Fqsen
Return values
FqsengetNodeType()
public
getNodeType() : string
Return values
stringgetOption()
public
getOption(string $name[, TType|null $default = null ]) : mixed
Parameters
- $name : string
- $default : TType|null = null
Tags
getOptions()
public
getOptions() : array<string, scalar|null>
Return values
array<string, scalar|null>getText()
public
getText() : string
Return values
stringgetType()
public
getType() : string
Return values
stringgetValue()
public
getValue() : TValue
Return values
TValuehasOption()
public
hasOption(string $name) : bool
Parameters
- $name : string
Return values
boolsetClasses()
Normalizes class names following the rules of identifier-normalization
public
setClasses(array<string|int, string> $classes) : void
Parameters
- $classes : array<string|int, string>
Tags
setValue()
public
setValue(TValue $value) : void
Parameters
- $value : TValue
toString()
public
toString() : string
Return values
stringwithDescriptor()
public
withDescriptor(Descriptor|null $descriptor) : self
Parameters
- $descriptor : Descriptor|null
Return values
selfwithKeepExistingOptions()
Adds $options as default options without overriding any options already set.
public
withKeepExistingOptions(array<string, scalar|null> $options) : static
Parameters
- $options : array<string, scalar|null>
Return values
staticwithOptions()
public
withOptions(array<string, scalar|null> $options) : static
Parameters
- $options : array<string, scalar|null>