Skip to content

Core\Reflect\ClassInfo

One class, as Core\Reflect::forClass and Core\Reflect::forObject return it. properties, methods, constants and attributes list what the class declares. get, set, call and construct use a class whose name is only known at run time.

Returned by

You get a Core\Reflect\ClassInfo from these methods:

Members

14 members.

MemberSignature
namename(): string
propertiesproperties(): array<Core\Reflect\PropertyInfo>
readablePropertiesreadableProperties(): array<string>
hasPropertyhasProperty(string $name): bool
methodsmethods(): array<Core\Reflect\MethodInfo>
constantsconstants(): array<Core\Reflect\ConstantInfo>
constantconstant(string $name): mixed
hasMethodhasMethod(string $name): bool
attributesattributes(): array<Core\Reflect\AttributeInfo>
parentparent(): ?string
getget(mixed $object, string $name): mixed
setset(mixed $object, string $name, mixed $value): void
callcall(mixed $object, string $name, array<mixed> $arguments): mixed
constructconstruct(array<mixed> $arguments): mixed