The ReflectionObject class

(PHP 5, PHP 7, PHP 8)

Introduction

The ReflectionObject class reports information about an object.

Class synopsis

class ReflectionObject extends ReflectionClass {
/* Inherited constants */
/* Inherited properties */
public string $name;
/* Methods */
public __construct(object $object)
/* Inherited methods */
public static ReflectionClass::export(mixed $argument, bool $return = false): string
public ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
}

Changelog

Version Description
8.0.0 ReflectionObject::export() was removed.

Table of Contents