removed ...Interface suffix and added 2nd service to Bridge example

This commit is contained in:
Dominik Liebler
2018-11-06 20:33:42 +01:00
parent b0ac02f01e
commit 617754573c
12 changed files with 145 additions and 659 deletions

View File

@@ -2,9 +2,9 @@
namespace DesignPatterns\Structural\Bridge;
class HtmlFormatter implements FormatterInterface
class HtmlFormatter implements Formatter
{
public function format(string $text)
public function format(string $text): string
{
return sprintf('<p>%s</p>', $text);
}