xref: /plugin/dw2pdf/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php (revision ef57be534d3f810c8d67a60a0cbeb1d3db3f731e)
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