ReplaceFilter
in package
implements
TypeFilter
Tags
Interfaces, Classes and Traits
Table of Contents
- $callback : callable
- __construct() : mixed
- apply() : mixed
- Applies the filter to the object.
Properties
$callback
protected
callable
$callback
Methods
__construct()
public
__construct(callable $callable) : mixed
Parameters
- $callable : callable
-
Will be called to get the new value for each element to replace
Return values
mixed —apply()
Applies the filter to the object.
public
apply(mixed $element) : mixed
Parameters
- $element : mixed
