D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
vendor
/
myclabs
/
deep-copy
/
src
/
DeepCopy
/
Matcher
/
Filename :
PropertyNameMatcher.php
back
Copy
<?php namespace DeepCopy\Matcher; /** * Match a property by its name */ class PropertyNameMatcher implements Matcher { /** * @var string */ private $property; /** * @param string $property Property name */ public function __construct($property) { $this->property = $property; } /** * {@inheritdoc} */ public function matches($object, $property) { return $property == $this->property; } }