Created
January 21, 2015 13:02
-
-
Save omissis/a8291d0e14c610e9e328 to your computer and use it in GitHub Desktop.
PlainDataMatcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\rules\DataMatcher\DataMatcherInterface. | |
*/ | |
namespace Drupal\rules\DataMatcher; | |
/** | |
* Base abstract class for Data Matchers. | |
*/ | |
abstract class PlainDataMatcher implements DataMatcherInterface { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function match($subject, $object) { | |
return $this->doMatch($subject, $object); | |
} | |
/** | |
* Perform the actual matching. | |
* | |
* @param mixed $subject | |
* @param mixed $object | |
* | |
* @return boolean | |
*/ | |
abstract protected function doMatch($subject, $object); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment