comparison vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
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 }