annotate 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
rev   line source
Chris@2 1 <?php
Chris@2 2
Chris@2 3 namespace DeepCopy\Matcher\Doctrine;
Chris@2 4
Chris@2 5 use DeepCopy\Matcher\Matcher;
Chris@2 6 use Doctrine\Common\Persistence\Proxy;
Chris@2 7
Chris@2 8 /**
Chris@2 9 * @final
Chris@2 10 */
Chris@2 11 class DoctrineProxyMatcher implements Matcher
Chris@2 12 {
Chris@2 13 /**
Chris@2 14 * Matches a Doctrine Proxy class.
Chris@2 15 *
Chris@2 16 * {@inheritdoc}
Chris@2 17 */
Chris@2 18 public function matches($object, $property)
Chris@2 19 {
Chris@2 20 return $object instanceof Proxy;
Chris@2 21 }
Chris@2 22 }