mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 04:00:18 +02:00
PHP7 Bridge
This commit is contained in:
11
Structural/Bridge/HtmlFormatter.php
Normal file
11
Structural/Bridge/HtmlFormatter.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user