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
Details
at line 73
static ClassType
from(string|object $class)
No description
at line 79
__construct(string $name = null, PhpNamespace $namespace = null)
No description
at line 86
string
__toString()
No description
at line 101
PhpNamespace|null
getNamespace()
deprecated
deprecated
No description
at line 108
ClassType
setName(string|null $name)
No description
at line 118
string|null
getName()
No description
at line 125
ClassType
setClass()
No description
at line 132
bool
isClass()
No description
at line 139
ClassType
setInterface()
No description
at line 146
bool
isInterface()
No description
at line 153
ClassType
setTrait()
No description
at line 160
bool
isTrait()
No description
at line 167
ClassType
setType(string $type)
No description
at line 177
string
getType()
No description
at line 184
ClassType
setFinal(bool $state = true)
No description
at line 191
bool
isFinal()
No description
at line 198
ClassType
setAbstract(bool $state = true)
No description
at line 205
bool
isAbstract()
No description
at line 215
ClassType
setExtends(string|string[] $names)
No description
at line 227
string|string[]
getExtends()
No description
at line 234
ClassType
addExtend(string $name)
No description
at line 247
ClassType
setImplements(array $names)
No description
at line 256
array
getImplements()
No description
at line 263
ClassType
addImplement(string $name)
No description
at line 272
ClassType
removeImplement(string $name)
No description
at line 286
ClassType
setTraits(array $names)
No description
at line 295
array
getTraits()
No description
at line 302
array
getTraitResolutions()
internal |
No description
at line 309
ClassType
addTrait(string $name, array $resolutions = [])
No description
at line 318
ClassType
removeTrait(string $name)
No description
at line 355
ClassType
setConstants(array $consts)
No description
at line 367
array
getConstants()
No description
at line 373
Constant
addConstant(string $name, $value)
No description
at line 380
ClassType
removeConstant(string $name)
No description
at line 391
ClassType
setProperties(array $props)
No description
at line 405
array
getProperties()
No description
at line 411
Property
getProperty(string $name)
No description
at line 423
Property
addProperty(string $name, $value = null)
No description
at line 433
ClassType
removeProperty(string $name)
No description
at line 440
bool
hasProperty(string $name)
No description
at line 450
ClassType
setMethods(array $methods)
No description
at line 464
array
getMethods()
No description
at line 470
Method
getMethod(string $name)
No description
at line 479
Method
addMethod(string $name)
No description
at line 492
ClassType
removeMethod(string $name)
No description
at line 499
bool
hasMethod(string $name)
No description
at line 506
void
validate()
No description
at line 527
__clone()
No description