ClassNode
in package
Class node.
Tags
Table of Contents
- $interfaces : mixed
- $methods : array<string|int, MethodNode>
- $parentClass : mixed
- $properties : mixed
- $unextendableMethods : mixed
- addInterface() : mixed
- addMethod() : mixed
- addProperty() : mixed
- addUnextendableMethod() : mixed
- getInterfaces() : array<string|int, string>
- getMethod() : MethodNode|null
- getMethods() : array<string|int, MethodNode>
- getParentClass() : mixed
- getProperties() : mixed
- getUnextendableMethods() : array<string|int, string>
- hasInterface() : bool
- hasMethod() : bool
- isExtendable() : bool
- removeMethod() : mixed
- setParentClass() : mixed
Properties
$interfaces
private
mixed
$interfaces
= array()
$methods
private
array<string|int, MethodNode>
$methods
= array()
$parentClass
private
mixed
$parentClass
= 'stdClass'
$properties
private
mixed
$properties
= array()
$unextendableMethods
private
mixed
$unextendableMethods
= array()
Methods
addInterface()
public
addInterface(string $interface) : mixed
Parameters
- $interface : string
Return values
mixed —addMethod()
public
addMethod(MethodNode $method[, mixed $force = false ]) : mixed
Parameters
- $method : MethodNode
- $force : mixed = false
Return values
mixed —addProperty()
public
addProperty(mixed $name[, mixed $visibility = 'public' ]) : mixed
Parameters
- $name : mixed
- $visibility : mixed = 'public'
Return values
mixed —addUnextendableMethod()
public
addUnextendableMethod(string $unextendableMethod) : mixed
Parameters
- $unextendableMethod : string
Return values
mixed —getInterfaces()
public
getInterfaces() : array<string|int, string>
Return values
array<string|int, string> —getMethod()
public
getMethod(string $name) : MethodNode|null
Parameters
- $name : string
Return values
MethodNode|null —getMethods()
public
getMethods() : array<string|int, MethodNode>
Return values
array<string|int, MethodNode> —getParentClass()
public
getParentClass() : mixed
Return values
mixed —getProperties()
public
getProperties() : mixed
Return values
mixed —getUnextendableMethods()
public
getUnextendableMethods() : array<string|int, string>
Return values
array<string|int, string> —hasInterface()
public
hasInterface(string $interface) : bool
Parameters
- $interface : string
Return values
bool —hasMethod()
public
hasMethod(string $name) : bool
Parameters
- $name : string
Return values
bool —isExtendable()
public
isExtendable(string $method) : bool
Parameters
- $method : string
Return values
bool —removeMethod()
public
removeMethod(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —setParentClass()
public
setParentClass(string $class) : mixed
Parameters
- $class : string