final class ClassType

Class/Interface/Trait description.

Constants

TYPE_CLASS

TYPE_INTERFACE

TYPE_TRAIT

Properties

Method[] $methods
Property[] $properties

Methods

static ClassType
from(string|object $class)

No description

__construct(string $name = null, PhpNamespace $namespace = null)

No description

string
__toString()

No description

getNamespace()

No description

setName(string|null $name)

No description

string|null
getName()

No description

setType(string $type)

No description

string
getType()

No description

setFinal(bool $state = true)

No description

bool
isFinal()

No description

setAbstract(bool $state = true)

No description

bool
isAbstract()

No description

setExtends(string|string[] $names)

No description

string|string[]
getExtends()

No description

addExtend(string $name)

No description

setImplements(array $names)

No description

array
getImplements()

No description

addImplement(string $name)

No description

setTraits(array $names)

No description

array
getTraits()

No description

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

No description

setConsts(array $consts) deprecated

No description

array
getConsts() deprecated

No description

addConst(string $name, $value) deprecated

No description

setConstants(array $consts)

No description

array
getConstants()

No description

addConstant(string $name, $value)

No description

setProperties(array $props)

No description

array
getProperties()

No description

getProperty(string $name)

No description

addProperty(string $name, $value = null)

No description

setMethods(array $methods)

No description

array
getMethods()

No description

getMethod(string $name)

No description

addMethod(string $name)

No description

Details

at line 71
static ClassType from(string|object $class)

No description

Parameters

string|object $class

Return Value

ClassType

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

No description

Parameters

string $name
PhpNamespace $namespace

at line 89
string __toString()

No description

Return Value

string

at line 135
PhpNamespace|null getNamespace()

No description

Return Value

PhpNamespace|null

at line 145
ClassType setName(string|null $name)

No description

Parameters

string|null $name

Return Value

ClassType

at line 158
string|null getName()

No description

Return Value

string|null

at line 167
ClassType setType(string $type)

No description

Parameters

string $type

Return Value

ClassType

at line 177
string getType()

No description

Return Value

string

at line 186
ClassType setFinal(bool $state = true)

No description

Parameters

bool $state

Return Value

ClassType

at line 193
bool isFinal()

No description

Return Value

bool

at line 202
ClassType setAbstract(bool $state = true)

No description

Parameters

bool $state

Return Value

ClassType

at line 209
bool isAbstract()

No description

Return Value

bool

at line 219
ClassType setExtends(string|string[] $names)

No description

Parameters

string|string[] $names

Return Value

ClassType

at line 233
string|string[] getExtends()

No description

Return Value

string|string[]

at line 242
ClassType addExtend(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 255
ClassType setImplements(array $names)

No description

Parameters

array $names

Return Value

ClassType

at line 266
array getImplements()

No description

Return Value

array

at line 275
ClassType addImplement(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 287
ClassType setTraits(array $names)

No description

Parameters

array $names

Return Value

ClassType

at line 298
array getTraits()

No description

Return Value

array

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

No description

Parameters

string $name
array $resolutions

Return Value

ClassType

at line 319
ClassType setConsts(array $consts) deprecated

deprecated use setConstants()

No description

Parameters

array $consts

Return Value

ClassType

at line 329
array getConsts() deprecated

deprecated use getConstants()

No description

Return Value

array

at line 340
ClassType addConst(string $name, $value) deprecated

deprecated use addConstant()

No description

Parameters

string $name
$value

Return Value

ClassType

at line 352
ClassType setConstants(array $consts)

No description

Parameters

array $consts

Return Value

ClassType

at line 366
array getConstants()

No description

Return Value

array

at line 372
Constant addConstant(string $name, $value)

No description

Parameters

string $name
$value

Return Value

Constant

at line 382
ClassType setProperties(array $props)

No description

Parameters

array $props

Return Value

ClassType

at line 398
array getProperties()

No description

Return Value

array

at line 404
Property getProperty(string $name)

No description

Parameters

string $name

Return Value

Property

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

No description

Parameters

string $name

without $

$value

Return Value

Property

at line 426
ClassType setMethods(array $methods)

No description

Parameters

array $methods

Return Value

ClassType

at line 442
array getMethods()

No description

Return Value

array

at line 448
Method getMethod(string $name)

No description

Parameters

string $name

Return Value

Method

at line 457
Method addMethod(string $name)

No description

Parameters

string $name

Return Value

Method

Traits

SmartObject