18 lines
288 B
PHP
Raw Normal View History

<?php
namespace DesignPatterns\Behavioral\NullObject;
/**
* PrintLogger is a logger that prints the log entry to standard output
*/
class PrintLogger implements LoggerInterface
{
2013-09-13 12:00:39 +02:00
/**
* @param string $str
*/
public function log($str)
{
echo $str;
}
2013-09-13 12:00:39 +02:00
}