ClassType
final class ClassType
Class/Interface/Trait/Enum description.
Constants
TYPE_CLASS |
|
TYPE_INTERFACE |
|
TYPE_TRAIT |
|
TYPE_ENUM |
|
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
No description
No description
No description
No description
Details
at line 75
static ClassType
class(string|null $name)
No description
at line 81
static ClassType
interface(string $name)
No description
at line 87
static ClassType
trait(string $name)
No description
at line 93
static ClassType
enum(string $name)
No description
at line 102
static ClassType
from(string|object $class, bool $withBodies = false, bool $materializeTraits = true)
No description
at line 112
static ClassType
withBodiesFrom(string|object $class)
No description
at line 119
static ClassType
fromCode(string $code)
No description
at line 126
__construct(string $name = null, PhpNamespace $namespace = null)
No description
at line 133
string
__toString()
No description
at line 148
PhpNamespace|null
getNamespace()
deprecated
deprecated
No description
at line 155
ClassType
setName(string|null $name)
No description
at line 165
string|null
getName()
No description
at line 172
ClassType
setClass()
deprecated
deprecated
No description
at line 179
bool
isClass()
No description
at line 186
ClassType
setInterface()
No description
at line 193
bool
isInterface()
No description
at line 200
ClassType
setTrait()
No description
at line 207
bool
isTrait()
No description
at line 213
bool
isEnum()
No description
at line 220
ClassType
setType(string $type)
No description
at line 230
string
getType()
No description
at line 237
ClassType
setFinal(bool $state = true)
No description
at line 244
bool
isFinal()
No description
at line 251
ClassType
setAbstract(bool $state = true)
No description
at line 258
bool
isAbstract()
No description
at line 268
ClassType
setExtends(string|string[] $names)
No description
at line 280
string|string[]
getExtends()
No description
at line 287
ClassType
addExtend(string $name)
No description
at line 300
ClassType
setImplements(array $names)
No description
at line 309
array
getImplements()
No description
at line 316
ClassType
addImplement(string $name)
No description
at line 325
ClassType
removeImplement(string $name)
No description
at line 336
ClassType
setTraits(array $traits)
No description
at line 350
array
getTraits()
No description
at line 357
array
getTraitResolutions()
internal |
No description
at line 381
ClassType
removeTrait(string $name)
No description
at line 424
ClassType
setConstants(array $consts)
No description
at line 438
array
getConstants()
No description
at line 444
Constant
addConstant(string $name, $value)
No description
at line 453
ClassType
removeConstant(string $name)
No description
at line 465
ClassType
setCases(array $cases)
Sets cases to enum
at line 477
array
getCases()
No description
at line 484
EnumCase
addCase(string $name, $value = null)
Adds case to enum
at line 492
ClassType
removeCase(string $name)
No description
at line 503
ClassType
setProperties(array $props)
No description
at line 515
array
getProperties()
No description
at line 521
Property
getProperty(string $name)
No description
at line 533
Property
addProperty(string $name, $value = null)
No description
at line 545
ClassType
removeProperty(string $name)
No description
at line 552
bool
hasProperty(string $name)
No description
at line 562
ClassType
setMethods(array $methods)
No description
at line 574
array
getMethods()
No description
at line 584
Method
getMethod(string $name)
No description
at line 594
Method
addMethod(string $name)
No description
at line 607
ClassType
removeMethod(string $name)
No description
at line 614
bool
hasMethod(string $name)
No description
at line 621
void
validate()
No description
at line 645
__clone()
No description