1<?php
2
3namespace DeepCopy\Matcher\Doctrine;
4
5use DeepCopy\Matcher\Matcher;
6use Doctrine\Common\Persistence\Proxy;
7
8/**
9 * @final
10 */
11class 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}
23