comparison vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php @ 2:5311817fb629

Theme updates
author Chris Cannam
date Tue, 10 Jul 2018 13:19:18 +0000
parents
children
comparison
equal deleted inserted replaced
1:0b0e5f3b1e83 2:5311817fb629
1 <?php
2
3 namespace DeepCopy\Matcher\Doctrine;
4
5 use DeepCopy\Matcher\Matcher;
6 use Doctrine\Common\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 }