Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PropertyNameMatcher.php

class PropertyNameMatcher

@final

Hierarchy

  • class \DeepCopy\Matcher\PropertyNameMatcher implements \DeepCopy\Matcher\Matcher

Expanded class hierarchy of PropertyNameMatcher

File

vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php, line 8

Namespace

DeepCopy\Matcher
View source
class PropertyNameMatcher implements Matcher {
    
    /**
     * @var string
     */
    private $property;
    
    /**
     * @param string $property Property name
     */
    public function __construct($property) {
        $this->property = $property;
    }
    
    /**
     * Matches a property by its name.
     *
     * {@inheritdoc}
     */
    public function matches($object, $property) {
        return $property == $this->property;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
PropertyNameMatcher::$property private property
PropertyNameMatcher::matches public function Matches a property by its name. Overrides Matcher::matches
PropertyNameMatcher::__construct public function
RSS feed
Powered by Drupal