Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions src/RuleDoc/RuleDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
final class RuleDefinition
{
private ?string $ruleClass = null;

private ?string $ruleFilePath = null;

/**
Expand Down Expand Up @@ -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
Expand All @@ -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[]
*/
Expand Down
Loading