ClassType
final class ClassType
Class/Interface/Trait description.
Constants
TYPE_CLASS |
|
TYPE_INTERFACE |
|
TYPE_TRAIT |
|
VISIBILITY_PUBLIC |
|
VISIBILITY_PROTECTED |
|
VISIBILITY_PRIVATE |
|
Properties
Method[] | $methods | ||
Property[] | $properties |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 73
static ClassType
from(string|object $class)
No description
at line 82
static ClassType
withBodiesFrom(string|object $class)
No description
at line 88
__construct(string $name = null, PhpNamespace $namespace = null)
No description
at line 95
string
__toString()
No description
at line 110
PhpNamespace|null
getNamespace()
deprecated
deprecated
No description
at line 117
ClassType
setName(string|null $name)
No description
at line 127
string|null
getName()
No description
at line 134
ClassType
setClass()
No description
at line 141
bool
isClass()
No description
at line 148
ClassType
setInterface()
No description
at line 155
bool
isInterface()
No description
at line 162
ClassType
setTrait()
No description
at line 169
bool
isTrait()
No description
at line 176
ClassType
setType(string $type)
No description
at line 186
string
getType()
No description
at line 193
ClassType
setFinal(bool $state = true)
No description
at line 200
bool
isFinal()
No description
at line 207
ClassType
setAbstract(bool $state = true)
No description
at line 214
bool
isAbstract()
No description
at line 224
ClassType
setExtends(string|string[] $names)
No description
at line 236
string|string[]
getExtends()
No description
at line 243
ClassType
addExtend(string $name)
No description
at line 256
ClassType
setImplements(array $names)
No description
at line 265
array
getImplements()
No description
at line 272
ClassType
addImplement(string $name)
No description
at line 281
ClassType
removeImplement(string $name)
No description
at line 295
ClassType
setTraits(array $names)
No description
at line 304
array
getTraits()
No description
at line 311
array
getTraitResolutions()
internal |
No description
at line 318
ClassType
addTrait(string $name, array $resolutions = [])
No description
at line 327
ClassType
removeTrait(string $name)
No description
at line 364
ClassType
setConstants(array $consts)
No description
at line 376
array
getConstants()
No description
at line 382
Constant
addConstant(string $name, $value)
No description
at line 389
ClassType
removeConstant(string $name)
No description
at line 400
ClassType
setProperties(array $props)
No description
at line 414
array
getProperties()
No description
at line 420
Property
getProperty(string $name)
No description
at line 432
Property
addProperty(string $name, $value = null)
No description
at line 442
ClassType
removeProperty(string $name)
No description
at line 449
bool
hasProperty(string $name)
No description
at line 459
ClassType
setMethods(array $methods)
No description
at line 473
array
getMethods()
No description
at line 479
Method
getMethod(string $name)
No description
at line 488
Method
addMethod(string $name)
No description
at line 501
ClassType
removeMethod(string $name)
No description
at line 508
bool
hasMethod(string $name)
No description
at line 515
void
validate()
No description
at line 536
__clone()
No description