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

Breadcrumb

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

function PropertyMatcher::matches

Matches a specific property of a specific class.

Overrides Matcher::matches

File

vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyMatcher.php, line 35

Class

PropertyMatcher
@final

Namespace

DeepCopy\Matcher

Code

public function matches($object, $property) {
    return $object instanceof $this->class && $property == $this->property;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal