classClassMetadata
final class ClassMetadata
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Class and composed trait facts; inherited members remain on the named parent. Doc comments are raw source text for integrations that read annotations; Deriver never interprets them.
(new \Deriver\Deriver\Evaluator\Declaration\ClassMetadata("User"))->name // => "User"Properties§
public string $namepublic string $parent = ''public list<string> $interfaces = []public list<string> $traits = []public array<string, string> $methods = []public array<string, PropertyMetadata> $properties = []public array<string, Term> $constants = []public bool $final = falsepublic bool $abstract = falsepublic bool $interface = falsepublic bool $enum = falsepublic string $docComment = ''public array<string, string> $constantDocComments = []Methods§
public function __construct(
public string $name,
public string $parent = '',
public list<string> $interfaces = [],
public list<string> $traits = [],
public array<string, string> $methods = [],
public array<string, PropertyMetadata> $properties = [],
public array<string, Term> $constants = [],
public bool $final = false,
public bool $abstract = false,
public bool $interface = false,
public bool $enum = false,
public string $docComment = '',
public array<string, string> $constantDocComments = [],
)Parameters
$name | string | Declaration spelling |
$parent | string | Parent class, or an empty string |
$interfaces | list<string> | Declared interfaces |
$traits | list<string> | Direct trait uses |
$methods | array<string, string> | Lowercase method names mapped to implementation identities |
$properties | array<string, PropertyMetadata> | Declared and composed properties |
$constants | array<string, Term> | Captured constant values; unresolved initializers stay explicit |
$final | bool | Whether subclasses are forbidden |
$abstract | bool | Whether the class is abstract |
$interface | bool | Whether this is an interface |
$enum | bool | Whether this is an enum |
$docComment | string | Raw class doc comment, or an empty string |
$constantDocComments | array<string, string> | Raw doc comment of each declared constant and enum case, or an empty string |
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.