diff --git a/src/RuleDoc/RuleDefinition.php b/src/RuleDoc/RuleDefinition.php index a1721278066..073bfebf4ef 100644 --- a/src/RuleDoc/RuleDefinition.php +++ b/src/RuleDoc/RuleDefinition.php @@ -14,8 +14,6 @@ */ final class RuleDefinition { - private ?string $ruleClass = null; - private ?string $ruleFilePath = null; /** @@ -44,20 +42,6 @@ public function getDescription(): string return $this->description; } - public function setRuleClass(string $ruleClass): void - { - $this->ruleClass = $ruleClass; - } - - public function getRuleClass(): string - { - if ($this->ruleClass === null) { - throw new ShouldNotHappenException(); - } - - return $this->ruleClass; - } - public function setRuleFilePath(string $ruleFilePath): void { // fir relative file path for GitHub @@ -73,16 +57,6 @@ public function getRuleFilePath(): string return $this->ruleFilePath; } - public function getRuleShortClass(): string - { - if ($this->ruleClass === null) { - throw new ShouldNotHappenException(); - } - - // get short class name - return basename(str_replace('\\', '/', $this->ruleClass)); - } - /** * @return CodeSampleInterface[] */