diff --git a/ExtractHierarchy.php b/ExtractHierarchy.php index 80d18e4..c8694ba 100644 --- a/ExtractHierarchy.php +++ b/ExtractHierarchy.php @@ -14,7 +14,7 @@ public function testATopicInEvidenceDisplaysItselfAsStronger() } } -class Topic +abstract class Topic { protected $title; protected $inEvidence; @@ -42,14 +42,10 @@ public function title() return $title; } - protected function decoratedTitleText() - { - if ($this->inEvidence) { - return "$this->title"; - } else { - return $this->title; - } - } + /** + * @return string + */ + abstract protected function decoratedTitleText(); } class OrdinaryTopic extends Topic