ReflectionTrace
class ReflectionTrace implements Reflector
This is the backtrace item reflector
Traits
\Reflector::export()
method
Properties
static array | $not_real_fcts |
Methods
Creation of a new instance of the mother class on-the-fly
Defines the read-only properties names and accessors.
Magic setter to avoid setting read-only properties.
Magic un-setter to avoid un-setting read-only properties.
No description
Returns a representation of called method or function
Tests if an object is defined
Returns the object if defined
Returns the class name if defined
Returns the class as a \ReflectionClass
object if defined
Returns the function name if defined
Returns the class as a \ReflectionFunction
or \ReflectionMethod
object if defined
Returns concerned line if defined
Returns concerned file if defined
Returns concerned type if defined
Returns the trace arguments as the original array
Returns the trace arguments as an array of \Reflectors\ReflectionParameterValue
or \ReflectionParameter
items
Representation of the object
Details
in
ReflectorTrait at line 54
static
string|null
export(
mixed $argument,
bool $return = false)
Creation of a new instance of the mother class on-the-fly
Keep in mind that this method only consider the FIRST argument passed to transmit to the constructor. If your mother class requires more than one argument, you will have to over-write this method (or to not use the trait).
in
ReadOnlyPropertiesTrait at line 54
void
setReadOnlyProperties(
array $data)
Defines the read-only properties names and accessors.
Each key => value
pair of the $data
array must be constructed like:
key
is the name of the property (MUST be defined with protected access in the child class)value
is an accessor for that property: the name of the access method if it exists ortrue
for the default$obj->$key
accessor.
in
ReadOnlyPropertiesTrait at line 85
mixed
__get(
string $name)
Magic getter for read-only properties.
This will trigger a notice if the property can not be accessed.
in
ReadOnlyPropertiesTrait at line 109
void
__set(
string $name,
mixed $value)
Magic setter to avoid setting read-only properties.
in
ReadOnlyPropertiesTrait at line 125
void
__unset(
string $name)
Magic un-setter to avoid un-setting read-only properties.
at line 93
__construct(
array $trace)
at line 118
string
getCalled()
Returns a representation of called method or function
Rendering:
ClassName::method
object->method
function
-
at line 138
bool
hasObject()
Tests if an object is defined
at line 148
mixed
getObject()
Returns the object if defined
at line 158
string|null
getClassName()
Returns the class name if defined
at line 168
ReflectionClass|null
getClass()
Returns the class as a \ReflectionClass
object if defined
at line 182
string|null
getFunctionName()
Returns the function name if defined
at line 192
ReflectionFunction|ReflectionMethod|null
getFunction()
Returns the class as a \ReflectionFunction
or \ReflectionMethod
object if defined
at line 216
int|null
getLine()
Returns concerned line if defined
at line 226
string
getFile()
Returns concerned file if defined
at line 236
mixed
getType()
Returns concerned type if defined
at line 246
mixed
getArgs()
Returns the trace arguments as the original array
at line 256
array
getArguments()
Returns the trace arguments as an array of \Reflectors\ReflectionParameterValue
or \ReflectionParameter
items
at line 311
string
__toString()
Representation of the object
If an exception is caught, its message is returned instead of the original result (but it is not thrown ahead).