Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace DeepCopy\Matcher\Doctrine;
4
 
5
use DeepCopy\Matcher\Matcher;
6
use Doctrine\Persistence\Proxy;
7
 
8
/**
9
 * @final
10
 */
11
class DoctrineProxyMatcher implements Matcher
12
{
13
    /**
14
     * Matches a Doctrine Proxy class.
15
     *
16
     * {@inheritdoc}
17
     */
18
    public function matches($object, $property)
19
    {
20
        return $object instanceof Proxy;
21
    }
22
}