Menu

## ClassNode
in package

ClassNode.php : 22

Class node.

##### Tags

author

  Konstantin Kudryashov ever.zet@gmail.com

### 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

ClassNode.php : 25
`private mixed $interfaces = array()`

#### $methods

ClassNode.php : 32
`private array<string|int, MethodNode> $methods = array()`

#### $parentClass

ClassNode.php : 24
`private mixed $parentClass = 'stdClass'`

#### $properties

ClassNode.php : 26
`private mixed $properties = array()`

#### $unextendableMethods

ClassNode.php : 27
`private mixed $unextendableMethods = array()`

### Methods

#### addInterface()

ClassNode.php : 58
`public addInterface(string $interface) : mixed`

##### Parameters

$interface : string

##### Return values

mixed —

#### addMethod()

ClassNode.php : 103
`public addMethod(MethodNode $method[, mixed $force = false ]) : mixed`

##### Parameters

$method : MethodNode
$force : mixed = false

##### Return values

mixed —

#### addProperty()

ClassNode.php : 82
`public addProperty(mixed $name[, mixed $visibility = 'public' ]) : mixed`

##### Parameters

$name : mixed
$visibility : mixed = 'public'

##### Return values

mixed —

#### addUnextendableMethod()

ClassNode.php : 153
`public addUnextendableMethod(string $unextendableMethod) : mixed`

##### Parameters

$unextendableMethod : string

##### Return values

mixed —

#### getInterfaces()

ClassNode.php : 50
`public getInterfaces() : array<string|int, string>`

##### Return values

array<string|int, string> —

#### getMethod()

ClassNode.php : 127
`public getMethod(string $name) : MethodNode|null`

##### Parameters

$name : string

##### Return values

MethodNode|null —

#### getMethods()

ClassNode.php : 98
`public getMethods() : array<string|int, MethodNode>`

##### Return values

array<string|int, MethodNode> —

#### getParentClass()

ClassNode.php : 34
`public getParentClass() : mixed`

##### Return values

mixed —

#### getProperties()

ClassNode.php : 77
`public getProperties() : mixed`

##### Return values

mixed —

#### getUnextendableMethods()

ClassNode.php : 145
`public getUnextendableMethods() : array<string|int, string>`

##### Return values

array<string|int, string> —

#### hasInterface()

ClassNode.php : 72
`public hasInterface(string $interface) : bool`

##### Parameters

$interface : string

##### Return values

bool —

#### hasMethod()

ClassNode.php : 137
`public hasMethod(string $name) : bool`

##### Parameters

$name : string

##### Return values

bool —

#### isExtendable()

ClassNode.php : 165
`public isExtendable(string $method) : bool`

##### Parameters

$method : string

##### Return values

bool —

#### removeMethod()

ClassNode.php : 117
`public removeMethod(mixed $name) : mixed`

##### Parameters

$name : mixed

##### Return values

mixed —

#### setParentClass()

ClassNode.php : 42
`public setParentClass(string $class) : mixed`

##### Parameters

$class : string

##### Return values

mixed —

## Search results