Documentation

ValueExtractorTrait

Provides functionality to extract the value of a property or method from an object.

Table of Contents

extractValue()  : mixed
Extracts the value of the given property or method from the object.

Methods

extractValue()

Extracts the value of the given property or method from the object.

protected extractValue(mixed $object, string $propertyOrMethod) : mixed
Parameters
$object : mixed

The object to extract the value from.

$propertyOrMethod : string

The property or method for which the value should be extracted.

Tags
throws
ValueExtractionException

if the method or property is not defined.

Return values
mixed

the value extracted from the specified property or method.

Search results