class ClassType extends Object

Class/Interface/Trait description.

Constants

TYPE_CLASS

TYPE_INTERFACE

TYPE_TRAIT

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)

No description

string[]
getDocuments()

No description

addDocument($s)

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 66
static ClassType from($from)

No description

Parameters

$from

Return Value

ClassType

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

No description

Parameters

$name
PhpNamespace $namespace

at line 107
string __toString()

No description

Return Value

string

PHP code

at line 150
PhpNamespace|null getNamespace()

No description

Return Value

PhpNamespace|null

at line 160
ClassType setName($name)

No description

Parameters

$name

Return Value

ClassType

at line 170
string getName()

No description

Return Value

string

at line 180
ClassType setType($type)

No description

Parameters

$type

Return Value

ClassType

at line 193
string getType()

No description

Return Value

string

at line 203
ClassType setFinal($state = TRUE)

No description

Parameters

$state

Return Value

ClassType

at line 213
bool isFinal()

No description

Return Value

bool

at line 223
ClassType setAbstract($state = TRUE)

No description

Parameters

$state

Return Value

ClassType

at line 233
bool isAbstract()

No description

Return Value

bool

at line 243
ClassType setExtends($types)

No description

Parameters

$types

Return Value

ClassType

at line 256
string|string[] getExtends()

No description

Return Value

string|string[]

at line 266
ClassType addExtend($type)

No description

Parameters

$type

Return Value

ClassType

at line 278
ClassType setImplements(array $types)

No description

Parameters

array $types

Return Value

ClassType

at line 288
string[] getImplements()

No description

Return Value

string[]

at line 298
ClassType addImplement($type)

No description

Parameters

$type

Return Value

ClassType

at line 309
ClassType setTraits(array $traits)

No description

Parameters

array $traits

Return Value

ClassType

at line 319
string[] getTraits()

No description

Return Value

string[]

at line 329
ClassType addTrait($trait)

No description

Parameters

$trait

Return Value

ClassType

at line 340
ClassType setComment($val)

No description

Parameters

$val

Return Value

ClassType

at line 350
string|null getComment()

No description

Return Value

string|null

at line 360
ClassType addComment($val)

No description

Parameters

$val

Return Value

ClassType

at line 370
ClassType setDocuments(array $s)

No description

Parameters

array $s

Return Value

ClassType

at line 380
string[] getDocuments()

No description

Return Value

string[]

at line 390
ClassType addDocument($s)

No description

Parameters

$s

Return Value

ClassType

at line 400
ClassType setConsts(array $consts)

No description

Parameters

array $consts

Return Value

ClassType

at line 410
array getConsts()

No description

Return Value

array

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

No description

Parameters

$name
$value

Return Value

ClassType

at line 432
ClassType setProperties(array $props)

No description

Parameters

array $props

Return Value

ClassType

at line 448
Property[] getProperties()

No description

Return Value

Property[]

at line 457
Property getProperty($name)

No description

Parameters

$name

Return Value

Property

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

No description

Parameters

$name
$value

Return Value

Property

at line 482
ClassType setMethods(array $methods)

No description

Parameters

array $methods

Return Value

ClassType

at line 498
Method[] getMethods()

No description

Return Value

Method[]

at line 507
Method getMethod($name)

No description

Parameters

$name

Return Value

Method

at line 520
Method addMethod($name)

No description

Parameters

$name

Return Value

Method