# Класс ReflectionObject

(PHP 5, PHP 7, PHP 8)

## Введение

Класс ReflectionObject сообщает информацию об объектах (object).

## Обзор класса

class ReflectionObject extends ReflectionClass {
/* Наследуемые константы */
public const int ReflectionClass::IS_IMPLICIT_ABSTRACT;
public const int ReflectionClass::IS_EXPLICIT_ABSTRACT;
public const int ReflectionClass::IS_FINAL;
public const int ReflectionClass::IS_READONLY;
public const int ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE;
public const int ReflectionClass::SKIP_DESTRUCTOR;
/* Наследуемые свойства */
public string $name;
/* Методы */
public function __construct(object `$object`)
/* Наследуемые методы */
public static function ReflectionClass::export(mixed `$argument`, bool `$return` = `false`): string
public function ReflectionClass::getAttributes(?string `$name` = `null`, int `$flags` = 0): array
public function ReflectionClass::getConstant(string `$name`): mixed
public function ReflectionClass::getConstants(?int `$filter` = `null`): array
public function ReflectionClass::getConstructor(): ?ReflectionMethod
public function ReflectionClass::getDefaultProperties(): array
public function ReflectionClass::getDocComment(): string|false
public function ReflectionClass::getEndLine(): int|false
public function ReflectionClass::getExtension(): ?ReflectionExtension
public function ReflectionClass::getExtensionName(): string|false
public function ReflectionClass::getFileName(): string|false
public function ReflectionClass::getInterfaceNames(): array
public function ReflectionClass::getInterfaces(): array
public function ReflectionClass::getLazyInitializer(object `$object`): ?callable
public function ReflectionClass::getMethod(string `$name`): ReflectionMethod
public function ReflectionClass::getMethods(?int `$filter` = `null`): array
public function ReflectionClass::getModifiers(): int
public function ReflectionClass::getName(): string
public function ReflectionClass::getNamespaceName(): string
public function ReflectionClass::getParentClass(): ReflectionClass|false
public function ReflectionClass::getProperties(?int `$filter` = `null`): array
public function ReflectionClass::getProperty(string `$name`): ReflectionProperty
public function ReflectionClass::getReflectionConstant(string `$name`): ReflectionClassConstant|false
public function ReflectionClass::getReflectionConstants(?int `$filter` = `null`): array
public function ReflectionClass::getShortName(): string
public function ReflectionClass::getStartLine(): int|false
public function ReflectionClass::getStaticProperties(): array
public function ReflectionClass::getStaticPropertyValue(string `$name`, mixed `&$default` = ?): mixed
public function ReflectionClass::getTraitAliases(): array
public function ReflectionClass::getTraitNames(): array
public function ReflectionClass::getTraits(): array
public function ReflectionClass::hasConstant(string `$name`): bool
public function ReflectionClass::hasMethod(string `$name`): bool
public function ReflectionClass::hasProperty(string `$name`): bool
public function ReflectionClass::implementsInterface(ReflectionClass|string `$interface`): bool
public function ReflectionClass::initializeLazyObject(object `$object`): object
public function ReflectionClass::inNamespace(): bool
public function ReflectionClass::isAbstract(): bool
public function ReflectionClass::isAnonymous(): bool
public function ReflectionClass::isCloneable(): bool
public function ReflectionClass::isEnum(): bool
public function ReflectionClass::isFinal(): bool
public function ReflectionClass::isInstance(object `$object`): bool
public function ReflectionClass::isInstantiable(): bool
public function ReflectionClass::isInterface(): bool
public function ReflectionClass::isInternal(): bool
public function ReflectionClass::isIterable(): bool
public function ReflectionClass::isReadOnly(): bool
public function ReflectionClass::isSubclassOf(ReflectionClass|string `$class`): bool
public function ReflectionClass::isTrait(): bool
public function ReflectionClass::isUninitializedLazyObject(object `$object`): bool
public function ReflectionClass::isUserDefined(): bool
public function ReflectionClass::markLazyObjectAsInitialized(object `$object`): object
public function ReflectionClass::newInstance(mixed `...$args`): object
public function ReflectionClass::newInstanceArgs(array `$args` = []): ?object
public function ReflectionClass::newInstanceWithoutConstructor(): object
public function ReflectionClass::newLazyGhost(callable `$initializer`, int `$options` = 0): object
public function ReflectionClass::newLazyProxy(callable `$factory`, int `$options` = 0): object
public function ReflectionClass::resetAsLazyGhost(object `$object`, callable `$initializer`, int `$options` = 0): void
public function ReflectionClass::resetAsLazyProxy(object `$object`, callable `$factory`, int `$options` = 0): void
public function ReflectionClass::setStaticPropertyValue(string `$name`, mixed `$value`): void
public function ReflectionClass::__toString(): string
}

## Список изменений

Версия | Описание
--- | ---
8.0.0 | Метод ReflectionObject::export() был удалён.

## Содержание

- ReflectionObject::__construct — Конструктор класса ReflectionObject
- ReflectionObject::export — Экспорт

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open