From d4df1c1c6531405ac8881d4f728a7773b9c09198 Mon Sep 17 00:00:00 2001 From: Giorgio Sironi Date: Mon, 13 Feb 2012 14:23:23 +0100 Subject: [PATCH] Made superclass and original variability method abstract --- ExtractHierarchy.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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