ClassLike
abstract class ClassLike
Base definition of class, interface, trait or enum type.
Constants
deprecated VisibilityPublic |
|
deprecated VISIBILITY_PUBLIC |
|
deprecated VisibilityProtected |
|
deprecated VISIBILITY_PROTECTED |
|
deprecated VisibilityPrivate |
|
deprecated VISIBILITY_PRIVATE |
|
Methods
static ClassLike
from(string|object $class, bool $withBodies = false, bool|null $materializeTraits = null)
No description
static ClassLike
__construct(string $name, PhpNamespace|null $namespace = null)
No description
string
__toString()
No description
PhpNamespace|null
string|null
getName()
No description
bool
isClass()
No description
bool
isInterface()
No description
bool
isTrait()
No description
bool
isEnum()
No description
void
validateNames(array $names)
No description
void
validate()
No description
Details
at line 40
static ClassLike
from(string|object $class, bool $withBodies = false, bool|null $materializeTraits = null)
No description
at line 51
static ClassLike
withBodiesFrom(string|object $class)
deprecated
deprecated
No description
at line 59
static ClassLike
fromCode(string $code)
No description
at line 66
__construct(string $name, PhpNamespace|null $namespace = null)
No description
at line 73
string
__toString()
No description
at line 80
PhpNamespace|null
getNamespace()
deprecated
deprecated
No description
at line 86
ClassLike
setName(string|null $name)
No description
at line 97
string|null
getName()
No description
at line 103
bool
isClass()
No description
at line 109
bool
isInterface()
No description
at line 115
bool
isTrait()
No description
at line 121
bool
isEnum()
No description
at line 128
protected void
validateNames(array $names)
No description
at line 138
void
validate()
No description