mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 12:10:10 +02:00
removed ...Interface suffix and added method to interface
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
namespace DesignPatterns\Creational\StaticFactory;
|
||||
|
||||
class FormatNumber implements FormatterInterface
|
||||
class FormatNumber implements Formatter
|
||||
{
|
||||
public function format(string $input): string
|
||||
{
|
||||
return number_format($input);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user