PHP7 Bridge

This commit is contained in:
Dominik Liebler
2016-09-22 20:33:24 +02:00
parent d151e309c5
commit 72f32359c6
16 changed files with 790 additions and 629 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace DesignPatterns\Structural\Bridge;
class HtmlFormatter implements FormatterInterface
{
public function format(string $text)
{
return sprintf('<p>%s</p>', $text);
}
}