mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
removed ...Interface suffix and added 2nd service to Bridge example
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Bridge;
|
||||
|
||||
class PlainTextFormatter implements FormatterInterface
|
||||
class PlainTextFormatter implements Formatter
|
||||
{
|
||||
public function format(string $text)
|
||||
public function format(string $text): string
|
||||
{
|
||||
return $text;
|
||||
}
|
||||
|
Reference in New Issue
Block a user