ClassLike
abstract class ClassLike
Class/Interface/Trait/Enum description.
Constants
VisibilityPublic |
|
VisibilityProtected |
|
VisibilityPrivate |
|
deprecated VISIBILITY_PUBLIC |
|
deprecated VISIBILITY_PROTECTED |
|
deprecated VISIBILITY_PRIVATE |
|
Methods
__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
void
__clone()
No description
Details
at line 41
static ClassLike
from(string|object $class, bool $withBodies = false)
No description
at line 55
static ClassLike
fromCode(string $code)
No description
at line 68
__construct(string $name, PhpNamespace|null $namespace = null)
No description
at line 75
string
__toString()
No description
at line 82
PhpNamespace|null
getNamespace()
deprecated
deprecated
No description
at line 88
ClassLike
setName(string|null $name)
No description
at line 99
string|null
getName()
No description
at line 105
bool
isClass()
No description
at line 111
bool
isInterface()
No description
at line 117
bool
isTrait()
No description
at line 123
bool
isEnum()
No description
at line 130
protected void
validateNames(array $names)
No description
at line 140
void
validate()
No description
at line 145
void
__clone()
No description