class ClassType

Class/Interface/Trait description.

Constants

TYPE_CLASS

TYPE_INTERFACE

TYPE_TRAIT

Properties

Method[] $methods
Property[] $properties

Methods

static ClassType
from($class)

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($names)

No description

string|string[]
getExtends()

No description

addExtend($name)

No description

setImplements(array $names)

No description

string[]
getImplements()

No description

addImplement($name)

No description

setTraits(array $names)

No description

string[]
getTraits()

No description

addTrait($name, array $resolutions = [])

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

No description

Parameters

$class

Return Value

ClassType

at line 80
__construct($name = null, PhpNamespace $namespace = null)

No description

Parameters

$name
PhpNamespace $namespace

at line 90
string __toString()

No description

Return Value

string

PHP code

at line 138
PhpNamespace|null getNamespace()

No description

Return Value

PhpNamespace|null

at line 148
ClassType setName($name)

No description

Parameters

$name

Return Value

ClassType

at line 161
string|null getName()

No description

Return Value

string|null

at line 171
ClassType setType($type)

No description

Parameters

$type

Return Value

ClassType

at line 184
string getType()

No description

Return Value

string

at line 194
ClassType setFinal($state = true)

No description

Parameters

$state

Return Value

ClassType

at line 204
bool isFinal()

No description

Return Value

bool

at line 214
ClassType setAbstract($state = true)

No description

Parameters

$state

Return Value

ClassType

at line 224
bool isAbstract()

No description

Return Value

bool

at line 234
ClassType setExtends($names)

No description

Parameters

$names

Return Value

ClassType

at line 248
string|string[] getExtends()

No description

Return Value

string|string[]

at line 258
ClassType addExtend($name)

No description

Parameters

$name

Return Value

ClassType

at line 271
ClassType setImplements(array $names)

No description

Parameters

array $names

Return Value

ClassType

at line 282
string[] getImplements()

No description

Return Value

string[]

at line 292
ClassType addImplement($name)

No description

Parameters

$name

Return Value

ClassType

at line 304
ClassType setTraits(array $names)

No description

Parameters

array $names

Return Value

ClassType

at line 315
string[] getTraits()

No description

Return Value

string[]

at line 325
ClassType addTrait($name, array $resolutions = [])

No description

Parameters

$name
array $resolutions

Return Value

ClassType

at line 337
ClassType setConsts(array $consts) deprecated

deprecated use setConstants()

No description

Parameters

array $consts

Return Value

ClassType

at line 347
array getConsts() deprecated

deprecated use getConstants()

No description

Return Value

array

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

deprecated use addConstant()

No description

Parameters

$name
$value

Return Value

ClassType

at line 370
ClassType setConstants(array $consts)

No description

Parameters

array $consts

Return Value

ClassType

at line 384
Constant[] getConstants()

No description

Return Value

Constant[]

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

No description

Parameters

$name
$value

Return Value

Constant

at line 405
ClassType setProperties(array $props)

No description

Parameters

array $props

Return Value

ClassType

at line 421
Property[] getProperties()

No description

Return Value

Property[]

at line 430
Property getProperty($name)

No description

Parameters

$name

Return Value

Property

at line 444
Property addProperty($name, $value = null)

No description

Parameters

$name
$value

Return Value

Property

at line 454
ClassType setMethods(array $methods)

No description

Parameters

array $methods

Return Value

ClassType

at line 470
Method[] getMethods()

No description

Return Value

Method[]

at line 479
Method getMethod($name)

No description

Parameters

$name

Return Value

Method

at line 492
Method addMethod($name)

No description

Parameters

$name

Return Value

Method

Traits

SmartObject