Documentation

ReplaceFilter
in package
implements Filter

Tags
final

Interfaces, Classes, Traits and Enums

Filter
Filter to apply to a property while copying an object

Table of Contents

$callback  : callable
__construct()  : mixed
apply()  : mixed
Replaces the object property by the result of the callback called with the object property.

Properties

Methods

__construct()

public __construct(callable $callable) : mixed
Parameters
$callable : callable

Will be called to get the new value for each property to replace

Return values
mixed —

apply()

Replaces the object property by the result of the callback called with the object property.

public apply(mixed $object, mixed $property, mixed $objectCopier) : mixed
Parameters
$object : mixed
$property : mixed
$objectCopier : mixed
Return values
mixed —

Search results