Methods |
public
|
getTraitUses(): TraitUse[]
|
#
|
public
|
getConstants(): ClassConst[]
|
#
|
public
|
getProperties(): Property[]
|
#
|
public
|
getProperty(string $name): Property|null
Gets property with the given name defined directly in this class/interface/trait.
Gets property with the given name defined directly in this class/interface/trait.
Parameters
$name |
Name of the property
|
Returns
Property node or null if the property does not exist
|
#
|
public
|
getMethods(): ClassMethod[]
Gets all methods defined directly in this class/interface/trait
Gets all methods defined directly in this class/interface/trait
|
#
|
public
|
getMethod(string $name): ClassMethod|null
Gets method with the given name defined directly in this class/interface/trait.
Gets method with the given name defined directly in this class/interface/trait.
Parameters
$name |
Name of the method (compared case-insensitively)
|
Returns
Method node or null if the method does not exist
|
#
|