<?phpnamespaceDeepCopy\Matcher;/** * Match a specific property of a specific class */classPropertyMatcherimplementsMatcher{/** * @var string */private$class;/** * @var string */private$property;/** * @param string $class Class name * @param string $property Property name */publicfunction__construct($class,$property){$this->class=$class;$this->property=$property;}/** * {@inheritdoc} */publicfunctionmatches($object,$property){return($objectinstanceof$this->class)&&($property==$this->property);}}