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 = '', PhpNamespace $namespace = NULL)

No description

string
__toString()

No description

getNamespace()

No description

setName($name)

No description

string
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)

No description

array
getConsts()

No description

addConst($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 102
__construct($name = '', PhpNamespace $namespace = NULL)

No description

Parameters

$name
PhpNamespace $namespace

at line 112
string __toString()

No description

Return Value

string

PHP code

at line 154
PhpNamespace|null getNamespace()

No description

Return Value

PhpNamespace|null

at line 164
ClassType setName($name)

No description

Parameters

$name

Return Value

ClassType

at line 174
string getName()

No description

Return Value

string

at line 184
ClassType setType($type)

No description

Parameters

$type

Return Value

ClassType

at line 197
string getType()

No description

Return Value

string

at line 207
ClassType setFinal($state = TRUE)

No description

Parameters

$state

Return Value

ClassType

at line 217
bool isFinal()

No description

Return Value

bool

at line 227
ClassType setAbstract($state = TRUE)

No description

Parameters

$state

Return Value

ClassType

at line 237
bool isAbstract()

No description

Return Value

bool

at line 247
ClassType setExtends($types)

No description

Parameters

$types

Return Value

ClassType

at line 260
string|string[] getExtends()

No description

Return Value

string|string[]

at line 270
ClassType addExtend($type)

No description

Parameters

$type

Return Value

ClassType

at line 282
ClassType setImplements(array $types)

No description

Parameters

array $types

Return Value

ClassType

at line 292
string[] getImplements()

No description

Return Value

string[]

at line 302
ClassType addImplement($type)

No description

Parameters

$type

Return Value

ClassType

at line 313
ClassType setTraits(array $traits)

No description

Parameters

array $traits

Return Value

ClassType

at line 323
string[] getTraits()

No description

Return Value

string[]

at line 333
ClassType addTrait($trait)

No description

Parameters

$trait

Return Value

ClassType

at line 344
ClassType setComment($val)

No description

Parameters

$val

Return Value

ClassType

at line 354
string|null getComment()

No description

Return Value

string|null

at line 364
ClassType addComment($val)

No description

Parameters

$val

Return Value

ClassType

at line 372
setDocuments(array $s) deprecated

deprecated

No description

Parameters

array $s

at line 380
getDocuments() deprecated

deprecated

No description

at line 388
addDocument($s) deprecated

deprecated

No description

Parameters

$s

at line 398
ClassType setConsts(array $consts)

No description

Parameters

array $consts

Return Value

ClassType

at line 408
array getConsts()

No description

Return Value

array

at line 419
ClassType addConst($name, $value)

No description

Parameters

$name
$value

Return Value

ClassType

at line 430
ClassType setProperties(array $props)

No description

Parameters

array $props

Return Value

ClassType

at line 446
Property[] getProperties()

No description

Return Value

Property[]

at line 455
Property getProperty($name)

No description

Parameters

$name

Return Value

Property

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

No description

Parameters

$name
$value

Return Value

Property

at line 479
ClassType setMethods(array $methods)

No description

Parameters

array $methods

Return Value

ClassType

at line 495
Method[] getMethods()

No description

Return Value

Method[]

at line 504
Method getMethod($name)

No description

Parameters

$name

Return Value

Method

at line 517
Method addMethod($name)

No description

Parameters

$name

Return Value

Method

Traits

SmartObject