ClassType
final class ClassType
Class/Interface/Trait/Enum description.
Constants
TYPE_CLASS |
|
TYPE_INTERFACE |
|
TYPE_TRAIT |
|
TYPE_ENUM |
|
VisibilityPublic |
|
VisibilityProtected |
|
VisibilityPrivate |
|
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
No description
Details
at line 80
static ClassType
class(string|null $name)
No description
at line 86
static ClassType
interface(string $name)
No description
at line 92
static ClassType
trait(string $name)
No description
at line 98
static ClassType
enum(string $name)
No description
at line 107
static ClassType
from(string|object $class, bool $withBodies = false, bool $materializeTraits = true)
No description
at line 117
static ClassType
withBodiesFrom(string|object $class)
No description
at line 124
static ClassType
fromCode(string $code)
No description
at line 131
__construct(string|null $name = null, PhpNamespace|null $namespace = null)
No description
at line 138
string
__toString()
No description
at line 154
PhpNamespace|null
getNamespace()
deprecated
deprecated
No description
at line 161
ClassType
setName(string|null $name)
No description
at line 172
string|null
getName()
No description
at line 179
ClassType
setClass()
deprecated
deprecated
No description
at line 186
bool
isClass()
No description
at line 193
ClassType
setInterface()
No description
at line 200
bool
isInterface()
No description
at line 207
ClassType
setTrait()
No description
at line 214
bool
isTrait()
No description
at line 220
bool
isEnum()
No description
at line 227
ClassType
setType(string $type)
No description
at line 238
string
getType()
No description
at line 245
ClassType
setFinal(bool $state = true)
No description
at line 252
bool
isFinal()
No description
at line 259
ClassType
setAbstract(bool $state = true)
No description
at line 266
bool
isAbstract()
No description
at line 276
ClassType
setExtends(string|string[] $names)
No description
at line 289
string|string[]
getExtends()
No description
at line 296
ClassType
addExtend(string $name)
No description
at line 309
ClassType
setImplements(array $names)
No description
at line 318
array
getImplements()
No description
at line 325
ClassType
addImplement(string $name)
No description
at line 334
ClassType
removeImplement(string $name)
No description
at line 345
ClassType
setTraits(array $traits)
No description
at line 361
array
getTraits()
No description
at line 368
array
getTraitResolutions()
internal |
No description
at line 393
ClassType
removeTrait(string $name)
No description
at line 437
ClassType
setConstants(array $consts)
No description
at line 453
array
getConstants()
No description
at line 459
Constant
addConstant(string $name, $value)
No description
at line 468
ClassType
removeConstant(string $name)
No description
at line 480
ClassType
setCases(array $cases)
Sets cases to enum
at line 493
array
getCases()
No description
at line 500
EnumCase
addCase(string $name, $value = null)
Adds case to enum
at line 508
ClassType
removeCase(string $name)
No description
at line 519
ClassType
setProperties(array $props)
No description
at line 532
array
getProperties()
No description
at line 538
Property
getProperty(string $name)
No description
at line 551
Property
addProperty(string $name, $value = null)
No description
at line 563
ClassType
removeProperty(string $name)
No description
at line 570
bool
hasProperty(string $name)
No description
at line 580
ClassType
setMethods(array $methods)
No description
at line 593
array
getMethods()
No description
at line 604
Method
getMethod(string $name)
No description
at line 615
Method
addMethod(string $name)
No description
at line 629
ClassType
removeMethod(string $name)
No description
at line 636
bool
hasMethod(string $name)
No description
at line 643
void
validate()
No description
at line 667
__clone()
No description