mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-10 21:08:41 +00:00
23 lines
367 B
PHP
Executable File
23 lines
367 B
PHP
Executable File
<?php
|
|
|
|
namespace DeepCopy\Matcher\Doctrine;
|
|
|
|
use DeepCopy\Matcher\Matcher;
|
|
use Doctrine\Common\Persistence\Proxy;
|
|
|
|
/**
|
|
* @final
|
|
*/
|
|
class DoctrineProxyMatcher implements Matcher
|
|
{
|
|
/**
|
|
* Matches a Doctrine Proxy class.
|
|
*
|
|
* {@inheritdoc}
|
|
*/
|
|
public function matches($object, $property)
|
|
{
|
|
return $object instanceof Proxy;
|
|
}
|
|
}
|