class ClassType

Class/Interface/Trait description.

Constants

TYPE_CLASS

TYPE_INTERFACE

TYPE_TRAIT

Properties

Method[] $methods
Property[] $properties

Methods

static ClassType
from($from)

No description

__construct($name = NULL, PhpNamespace $namespace = NULL)

No description

string
__toString()

No description

getNamespace()

No description

setName($name)

No description

string|null
getName()

No description

setType($type)

No description

string
getType()

No description

setFinal($state = TRUE)

No description

bool
isFinal()

No description

setAbstract($state = TRUE)

No description

bool
isAbstract()

No description

setExtends($types)

No description

string|string[]
getExtends()

No description

addExtend($type)

No description

setImplements(array $types)

No description

string[]
getImplements()

No description

addImplement($type)

No description

setTraits(array $traits)

No description

string[]
getTraits()

No description

addTrait($trait)

No description

setComment($val)

No description

string|null
getComment()

No description

addComment($val)

No description

setDocuments(array $s) deprecated

No description

getDocuments() deprecated

No description

addDocument($s) deprecated

No description

setConsts(array $consts) deprecated

No description

array
getConsts() deprecated

No description

addConst($name, $value) deprecated

No description

setConstants(array $consts)

No description

getConstants()

No description

addConstant($name, $value)

No description

setProperties(array $props)

No description

getProperties()

No description

getProperty($name)

No description

addProperty($name, $value = NULL)

No description

setMethods(array $methods)

No description

Method[]
getMethods()

No description

getMethod($name)

No description

addMethod($name)

No description

Details

at line 71
static ClassType from($from)

No description

Parameters

$from

Return Value

ClassType

at line 79
__construct($name = NULL, PhpNamespace $namespace = NULL)

No description

Parameters

$name
PhpNamespace $namespace

at line 89
string __toString()

No description

Return Value

string

PHP code

at line 131
PhpNamespace|null getNamespace()

No description

Return Value

PhpNamespace|null

at line 141
ClassType setName($name)

No description

Parameters

$name

Return Value

ClassType

at line 151
string|null getName()

No description

Return Value

string|null

at line 161
ClassType setType($type)

No description

Parameters

$type

Return Value

ClassType

at line 174
string getType()

No description

Return Value

string

at line 184
ClassType setFinal($state = TRUE)

No description

Parameters

$state

Return Value

ClassType

at line 194
bool isFinal()

No description

Return Value

bool

at line 204
ClassType setAbstract($state = TRUE)

No description

Parameters

$state

Return Value

ClassType

at line 214
bool isAbstract()

No description

Return Value

bool

at line 224
ClassType setExtends($types)

No description

Parameters

$types

Return Value

ClassType

at line 237
string|string[] getExtends()

No description

Return Value

string|string[]

at line 247
ClassType addExtend($type)

No description

Parameters

$type

Return Value

ClassType

at line 259
ClassType setImplements(array $types)

No description

Parameters

array $types

Return Value

ClassType

at line 269
string[] getImplements()

No description

Return Value

string[]

at line 279
ClassType addImplement($type)

No description

Parameters

$type

Return Value

ClassType

at line 290
ClassType setTraits(array $traits)

No description

Parameters

array $traits

Return Value

ClassType

at line 300
string[] getTraits()

No description

Return Value

string[]

at line 310
ClassType addTrait($trait)

No description

Parameters

$trait

Return Value

ClassType

at line 321
ClassType setComment($val)

No description

Parameters

$val

Return Value

ClassType

at line 331
string|null getComment()

No description

Return Value

string|null

at line 341
ClassType addComment($val)

No description

Parameters

$val

Return Value

ClassType

at line 349
setDocuments(array $s) deprecated

deprecated

No description

Parameters

array $s

at line 357
getDocuments() deprecated

deprecated

No description

at line 365
addDocument($s) deprecated

deprecated

No description

Parameters

$s

at line 376
ClassType setConsts(array $consts) deprecated

deprecated use setConstants()

No description

Parameters

array $consts

Return Value

ClassType

at line 386
array getConsts() deprecated

deprecated use getConstants()

No description

Return Value

array

at line 398
ClassType addConst($name, $value) deprecated

deprecated use addConstant()

No description

Parameters

$name
$value

Return Value

ClassType

at line 408
ClassType setConstants(array $consts)

No description

Parameters

array $consts

Return Value

ClassType

at line 422
Constant[] getConstants()

No description

Return Value

Constant[]

at line 433
Constant addConstant($name, $value)

No description

Parameters

$name
$value

Return Value

Constant

at line 443
ClassType setProperties(array $props)

No description

Parameters

array $props

Return Value

ClassType

at line 459
Property[] getProperties()

No description

Return Value

Property[]

at line 468
Property getProperty($name)

No description

Parameters

$name

Return Value

Property

at line 482
Property addProperty($name, $value = NULL)

No description

Parameters

$name
$value

Return Value

Property

at line 492
ClassType setMethods(array $methods)

No description

Parameters

array $methods

Return Value

ClassType

at line 508
Method[] getMethods()

No description

Return Value

Method[]

at line 517
Method getMethod($name)

No description

Parameters

$name

Return Value

Method

at line 530
Method addMethod($name)

No description

Parameters

$name

Return Value

Method

Traits

SmartObject