VS
private $tag;
private $text;
private $style;
public function __construct( string $tag )
{
$this -> tag = $tag;
}
public function setText( string $text)
{
$this -> text = $text;
return $this;
}
public function setStyle( string $style)
{
$this -> style = $style;
return $this;
}
public function show ()
{
return '<'. $this -> tag . '>' . $this -> text . '</'.$this -> tag .'>';
}
}