| 1 | <?php |
||
| 8 | class ReplaceFilter implements Filter |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var callable |
||
| 12 | */ |
||
| 13 | protected $callback; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param callable $callable Will be called to get the new value for each property to replace |
||
| 17 | */ |
||
| 18 | public function __construct(callable $callable) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function apply($object, $property, $objectCopier) |
||
| 35 | } |
||
| 36 |