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