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

PhpNamespace|null
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

array
getTraitResolutions()

No description

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

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 70
static ClassType from(string|object $class)

No description

Parameters

string|object $class

Return Value

ClassType

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

No description

Parameters

string $name
PhpNamespace $namespace

at line 83
string __toString()

No description

Return Value

string

at line 126
PhpNamespace|null getNamespace()

No description

Return Value

PhpNamespace|null

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

No description

Parameters

string|null $name

Return Value

ClassType

at line 145
string|null getName()

No description

Return Value

string|null

at line 154
ClassType setType(string $type)

No description

Parameters

string $type

Return Value

ClassType

at line 164
string getType()

No description

Return Value

string

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

No description

Parameters

bool $state

Return Value

ClassType

at line 180
bool isFinal()

No description

Return Value

bool

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

No description

Parameters

bool $state

Return Value

ClassType

at line 196
bool isAbstract()

No description

Return Value

bool

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

No description

Parameters

string|string[] $names

Return Value

ClassType

at line 220
string|string[] getExtends()

No description

Return Value

string|string[]

at line 229
ClassType addExtend(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 242
ClassType setImplements(array $names)

No description

Parameters

array $names

Return Value

ClassType

at line 253
array getImplements()

No description

Return Value

array

at line 262
ClassType addImplement(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 274
ClassType setTraits(array $names)

No description

Parameters

array $names

Return Value

ClassType

at line 285
array getTraits()

No description

Return Value

array

at line 294
array getTraitResolutions()

internal  
 

No description

Return Value

array

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

No description

Parameters

string $name
array $resolutions

Return Value

ClassType

at line 315
ClassType setConstants(array $consts)

No description

Parameters

array $consts

Return Value

ClassType

at line 329
array getConstants()

No description

Return Value

array

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

No description

Parameters

string $name
$value

Return Value

Constant

at line 345
ClassType setProperties(array $props)

No description

Parameters

array $props

Return Value

ClassType

at line 361
array getProperties()

No description

Return Value

array

at line 367
Property getProperty(string $name)

No description

Parameters

string $name

Return Value

Property

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

No description

Parameters

string $name

without $

$value

Return Value

Property

at line 389
ClassType setMethods(array $methods)

No description

Parameters

array $methods

Return Value

ClassType

at line 405
array getMethods()

No description

Return Value

array

at line 411
Method getMethod(string $name)

No description

Parameters

string $name

Return Value

Method

at line 420
Method addMethod(string $name)

No description

Parameters

string $name

Return Value

Method

Traits

SmartObject