interface Reflector implements Stringable (View source)

Reflector is an interface implemented by all exportable Reflection classes.

Methods

string
__toString()

Returns the string representation of any Reflection object.

static string|null
export()

Exports a class.

Details

string __toString()

Returns the string representation of any Reflection object.

Please note that since PHP 8.0 this method is absent in this interface and inherits from the {\Stringable} parent.

Return Value

string

Returns string representation of the object that implements this interface (and/or "__toString" magic method).

static string|null export()

Exports a class.

Return Value

string|null