implements |
Reflector |
---|
Methods | ||
---|---|---|
public
|
__construct(object|string $objectOrClass)
|
# |
public
|
__toString(): string
|
# |
public
|
getName(): string
|
# |
public
|
isInternal(): bool
|
# |
public
|
isUserDefined(): bool
|
# |
public
|
isAnonymous(): bool
|
# |
public
|
isInstantiable(): bool
|
# |
public
|
isCloneable(): bool
|
# |
public
|
getFileName(): string|false
|
# |
public
|
getStartLine(): int|false
|
# |
public
|
getEndLine(): int|false
|
# |
public
|
getDocComment(): string|false
|
# |
public
|
getConstructor(): ReflectionMethod|null
|
# |
public
|
hasMethod(string $name): bool
|
# |
public
|
getMethod(string $name): ReflectionMethod
|
# |
public
|
getMethods(?int $filter = null): ReflectionMethod[]
|
# |
public
|
hasProperty(string $name): bool
|
# |
public
|
getProperty(string $name): ReflectionProperty
|
# |
public
|
getProperties(?int $filter = null): ReflectionProperty[]
|
# |
public
|
hasConstant(string $name): bool
|
# |
public
|
getConstants(?int $filter = null): array
|
# |
public
|
getReflectionConstants(?int $filter = null): ReflectionClassConstant[]
|
# |
public
|
getConstant(string $name): mixed
|
# |
public
|
getReflectionConstant(string $name): ReflectionClassConstant|false
|
# |
public
|
getInterfaces(): ReflectionClass[]
|
# |
public
|
getInterfaceNames(): string[]
|
# |
public
|
isInterface(): bool
|
# |
public
|
getTraits(): ReflectionClass[]
|
# |
public
|
getTraitNames(): string[]
|
# |
public
|
getTraitAliases(): string[]
|
# |
public
|
isTrait(): bool
|
# |
public
|
isEnum(): bool
|
# |
public
|
isAbstract(): bool
|
# |
public
|
isFinal(): bool
|
# |
public
|
isReadOnly(): bool
|
# |
public
|
getModifiers(): int
|
# |
public
|
isInstance(object $object): bool
|
# |
public
|
newInstance(mixed ...$args): object
|
# |
public
|
newInstanceWithoutConstructor(): object
|
# |
public
|
newInstanceArgs(array $args = []): object
|
# |
public
|
newLazyGhost(callable $initializer, int $options = 0): object
|
# |
public
|
newLazyProxy(callable $factory, int $options = 0): object
|
# |
public
|
resetAsLazyGhost(object $object, callable $factory, int $options = 0): void
|
# |
public
|
resetAsLazyProxy(object $object, callable $factory, int $options = 0): void
|
# |
public
|
initializeLazyObject(object $object): object
|
# |
public
|
isUninitializedLazyObject(object $object): bool
|
# |
public
|
markLazyObjectAsInitialized(object $object): object
|
# |
public
|
getLazyInitializer(object $object): ?callable
|
# |
public
|
getParentClass(): ReflectionClass|false
|
# |
public
|
isSubclassOf(ReflectionClass|string $class): bool
|
# |
public
|
getStaticProperties(): array|null
|
# |
public
|
getStaticPropertyValue(string $name, mixed $default = UNKNOWN): mixed
|
# |
public
|
setStaticPropertyValue(string $name, mixed $value): void
|
# |
public
|
getDefaultProperties(): array
|
# |
public
|
isIterable(): bool
|
# |
public
|
isIterateable(): bool
|
# |
public
|
implementsInterface(ReflectionClass|string $interface): bool
|
# |
public
|
getExtension(): ReflectionExtension|null
|
# |
public
|
getExtensionName(): string|false
|
# |
public
|
inNamespace(): bool
|
# |
public
|
getNamespaceName(): string
|
# |
public
|
getShortName(): string
|
# |
public
|
getAttributes(?string $name = null, int $flags = 0): ReflectionAttribute[]
|
# |
Constants | ||
---|---|---|
public
|
IS_IMPLICIT_ABSTRACT = UNKNOWN
|
# |
public
|
IS_EXPLICIT_ABSTRACT = UNKNOWN
|
# |
public
|
IS_FINAL = UNKNOWN
|
# |
public
|
IS_READONLY = UNKNOWN
|
# |
public
|
SKIP_INITIALIZATION_ON_SERIALIZE = UNKNOWN
|
# |
public
|
SKIP_DESTRUCTOR = UNKNOWN
|
# |