ReplaceFilter
in package
implements
TypeFilter
Tags
Table of Contents
Interfaces
Properties
- $callback : callable
Methods
- __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
apply()
Applies the filter to the object.
public
apply(mixed $element) : mixed
Parameters
- $element : mixed