diff --git a/src/main/php/PHPMD/AbstractRule.php b/src/main/php/PHPMD/AbstractRule.php index d31ca67a2..345beb432 100644 --- a/src/main/php/PHPMD/AbstractRule.php +++ b/src/main/php/PHPMD/AbstractRule.php @@ -407,4 +407,13 @@ protected function addViolation( $ruleViolation = new RuleViolation($this, $node, $message, $metric); $this->report->addRuleViolation($ruleViolation); } + + /** + * This method should implement the violation analysis algorithm of concrete + * rule implementations. All extending classes must implement this method. + * + * @param \PHPMD\AbstractNode $node + * @return void + */ + abstract public function apply(AbstractNode $node); }