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 74
static ClassType
from(string|object $class)
No description
at line 83
static ClassType
withBodiesFrom(string|object $class)
No description
at line 89
__construct(string $name = null, PhpNamespace $namespace = null)
No description
at line 96
string
__toString()
No description
at line 111
PhpNamespace|null
getNamespace()
deprecated
deprecated
No description
at line 118
ClassType
setName(string|null $name)
No description
at line 128
string|null
getName()
No description
at line 135
ClassType
setClass()
No description
at line 142
bool
isClass()
No description
at line 149
ClassType
setInterface()
No description
at line 156
bool
isInterface()
No description
at line 163
ClassType
setTrait()
No description
at line 170
bool
isTrait()
No description
at line 177
ClassType
setType(string $type)
No description
at line 187
string
getType()
No description
at line 194
ClassType
setFinal(bool $state = true)
No description
at line 201
bool
isFinal()
No description
at line 208
ClassType
setAbstract(bool $state = true)
No description
at line 215
bool
isAbstract()
No description
at line 225
ClassType
setExtends(string|string[] $names)
No description
at line 237
string|string[]
getExtends()
No description
at line 244
ClassType
addExtend(string $name)
No description
at line 257
ClassType
setImplements(array $names)
No description
at line 266
array
getImplements()
No description
at line 273
ClassType
addImplement(string $name)
No description
at line 282
ClassType
removeImplement(string $name)
No description
at line 296
ClassType
setTraits(array $names)
No description
at line 305
array
getTraits()
No description
at line 312
array
getTraitResolutions()
internal |
No description
at line 319
ClassType
addTrait(string $name, array $resolutions = [])
No description
at line 328
ClassType
removeTrait(string $name)
No description
at line 365
ClassType
setConstants(array $consts)
No description
at line 379
array
getConstants()
No description
at line 385
Constant
addConstant(string $name, $value)
No description
at line 392
ClassType
removeConstant(string $name)
No description
at line 403
ClassType
setProperties(array $props)
No description
at line 417
array
getProperties()
No description
at line 423
Property
getProperty(string $name)
No description
at line 435
Property
addProperty(string $name, $value = null)
No description
at line 447
ClassType
removeProperty(string $name)
No description
at line 454
bool
hasProperty(string $name)
No description
at line 464
ClassType
setMethods(array $methods)
No description
at line 478
array
getMethods()
No description
at line 484
Method
getMethod(string $name)
No description
at line 493
Method
addMethod(string $name)
No description
at line 506
ClassType
removeMethod(string $name)
No description
at line 513
bool
hasMethod(string $name)
No description
at line 520
void
validate()
No description
at line 541
__clone()
No description