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
Details
at line 74
static ClassType
from(string|object $class)
No description
at line 80
__construct(string $name = null, PhpNamespace $namespace = null)
No description
at line 87
string
__toString()
No description
at line 101
PhpNamespace|null
getNamespace()
deprecated
deprecated
Deprecated: an object can be in multiple namespaces.
at line 110
ClassType
setName(string|null $name)
No description
at line 120
string|null
getName()
No description
at line 129
ClassType
setType(string $type)
No description
at line 139
string
getType()
No description
at line 148
ClassType
setFinal(bool $state = true)
No description
at line 155
bool
isFinal()
No description
at line 164
ClassType
setAbstract(bool $state = true)
No description
at line 171
bool
isAbstract()
No description
at line 181
ClassType
setExtends(string|string[] $names)
No description
at line 195
string|string[]
getExtends()
No description
at line 204
ClassType
addExtend(string $name)
No description
at line 217
ClassType
setImplements(array $names)
No description
at line 228
array
getImplements()
No description
at line 237
ClassType
addImplement(string $name)
No description
at line 249
ClassType
setTraits(array $names)
No description
at line 260
array
getTraits()
No description
at line 269
array
getTraitResolutions()
internal |
No description
at line 278
ClassType
addTrait(string $name, array $resolutions = [])
No description
at line 316
ClassType
setConstants(array $consts)
No description
at line 330
array
getConstants()
No description
at line 336
Constant
addConstant(string $name, $value)
No description
at line 345
ClassType
removeConstant(string $name)
No description
at line 356
ClassType
setProperties(array $props)
No description
at line 372
array
getProperties()
No description
at line 378
Property
getProperty(string $name)
No description
at line 390
Property
addProperty(string $name, $value = null)
No description
at line 400
ClassType
removeProperty(string $name)
No description
at line 407
bool
hasProperty(string $name)
No description
at line 417
ClassType
setMethods(array $methods)
No description
at line 433
array
getMethods()
No description
at line 439
Method
getMethod(string $name)
No description
at line 448
Method
addMethod(string $name)
No description
at line 463
ClassType
removeMethod(string $name)
No description
at line 470
bool
hasMethod(string $name)
No description
at line 479
void
validate()
No description
at line 500
__clone()
No description