PHP7 NullObject

This commit is contained in:
Dominik Liebler
2016-09-22 10:43:27 +02:00
parent 01007ec5a8
commit b707bf064e
5 changed files with 10 additions and 44 deletions

View File

@@ -2,15 +2,9 @@
namespace DesignPatterns\Behavioral\NullObject;
/**
* PrintLogger is a logger that prints the log entry to standard output.
*/
class PrintLogger implements LoggerInterface
{
/**
* @param string $str
*/
public function log($str)
public function log(string $str)
{
echo $str;
}