ClassType
final class ClassType extends ClassLike
Definition of a class with properties, methods, constants, traits and PHP attributes.
Constants
deprecated TYPE_CLASS |
|
deprecated TYPE_INTERFACE |
|
deprecated TYPE_TRAIT |
|
deprecated TYPE_ENUM |
|
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
Details
at line 42
static ClassType
class(string|null $name)
deprecated
deprecated
No description
at line 50
static InterfaceType
interface(string $name)
deprecated
deprecated
No description
at line 58
static TraitType
trait(string $name)
deprecated
deprecated
No description
at line 66
static EnumType
enum(string $name)
deprecated
deprecated
No description
at line 73
__construct(string $name = null, PhpNamespace|null $namespace = null)
No description
at line 85
string
getType()
deprecated
deprecated
No description
at line 92
ClassType
setFinal(bool $state = true)
No description
at line 99
bool
isFinal()
No description
at line 105
ClassType
setAbstract(bool $state = true)
No description
at line 112
bool
isAbstract()
No description
at line 118
ClassType
setReadOnly(bool $state = true)
No description
at line 125
bool
isReadOnly()
No description
at line 131
ClassType
setExtends(string|null $name)
No description
at line 141
string|null
getExtends()
No description
at line 150
ClassType
setImplements(array $names)
No description
at line 159
array
getImplements()
No description
at line 165
ClassType
addImplement(string $name)
No description
at line 173
ClassType
removeImplement(string $name)
No description
at line 180
ClassType
addMember(TraitUse $member, bool $overwrite = false)
No description
at line 200
Property
inheritProperty(string $name, bool $returnIfExists = false)
deprecated
deprecated
No description
at line 209
Method
inheritMethod(string $name, bool $returnIfExists = false)
deprecated
deprecated
No description
at line 216
void
validate()
No description
at line 228
void
__clone()
No description