You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
348 B
19 lines
348 B
3 years ago
|
<?php
|
||
|
|
||
|
namespace DeepCopy\Filter;
|
||
|
|
||
|
/**
|
||
|
* Filter to apply to a property while copying an object
|
||
|
*/
|
||
|
interface Filter
|
||
|
{
|
||
|
/**
|
||
|
* Applies the filter to the object.
|
||
|
*
|
||
|
* @param object $object
|
||
|
* @param string $property
|
||
|
* @param callable $objectCopier
|
||
|
*/
|
||
|
public function apply($object, $property, $objectCopier);
|
||
|
}
|