22 lines
428 B
PHP
22 lines
428 B
PHP
<?php
|
|
|
|
namespace WP_Ultimo\Dependencies\DeepCopy\Matcher\Doctrine;
|
|
|
|
use WP_Ultimo\Dependencies\DeepCopy\Matcher\Matcher;
|
|
use WP_Ultimo\Dependencies\Doctrine\Persistence\Proxy;
|
|
/**
|
|
* @final
|
|
*/
|
|
class DoctrineProxyMatcher implements Matcher
|
|
{
|
|
/**
|
|
* Matches a Doctrine Proxy class.
|
|
*
|
|
* {@inheritdoc}
|
|
*/
|
|
public function matches($object, $property)
|
|
{
|
|
return $object instanceof Proxy;
|
|
}
|
|
}
|