Skip to content

Commit cfabdbf

Browse files
authored
remove unused RuleDefinition rule-class accessors (#8808)
1 parent 5ee417d commit cfabdbf

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

‎src/RuleDoc/RuleDefinition.php‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
final class RuleDefinition
1616
{
17-
private ?string $ruleClass = null;
18-
1917
private ?string $ruleFilePath = null;
2018

2119
/**
@@ -44,20 +42,6 @@ public function getDescription(): string
4442
return $this->description;
4543
}
4644

47-
public function setRuleClass(string $ruleClass): void
48-
{
49-
$this->ruleClass = $ruleClass;
50-
}
51-
52-
public function getRuleClass(): string
53-
{
54-
if ($this->ruleClass === null) {
55-
throw new ShouldNotHappenException();
56-
}
57-
58-
return $this->ruleClass;
59-
}
60-
6145
public function setRuleFilePath(string $ruleFilePath): void
6246
{
6347
// fir relative file path for GitHub
@@ -73,16 +57,6 @@ public function getRuleFilePath(): string
7357
return $this->ruleFilePath;
7458
}
7559

76-
public function getRuleShortClass(): string
77-
{
78-
if ($this->ruleClass === null) {
79-
throw new ShouldNotHappenException();
80-
}
81-
82-
// get short class name
83-
return basename(str_replace('\\', '/', $this->ruleClass));
84-
}
85-
8660
/**
8761
* @return CodeSampleInterface[]
8862
*/

0 commit comments

Comments
 (0)