Skip to content

Commit

Permalink
Made superclass and original variability method abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiosironi committed Feb 13, 2012
1 parent eb8d36a commit d4df1c1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions ExtractHierarchy.php
Expand Up @@ -14,7 +14,7 @@ public function testATopicInEvidenceDisplaysItselfAsStronger()
}
}

class Topic
abstract class Topic
{
protected $title;
protected $inEvidence;
Expand Down Expand Up @@ -42,14 +42,10 @@ public function title()
return $title;
}

protected function decoratedTitleText()
{
if ($this->inEvidence) {
return "<strong>$this->title</strong>";
} else {
return $this->title;
}
}
/**
* @return string
*/
abstract protected function decoratedTitleText();
}

class OrdinaryTopic extends Topic
Expand Down

0 comments on commit d4df1c1

Please sign in to comment.