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

@@ -3,16 +3,9 @@
namespace DesignPatterns\Behavioral\NullObject;
/**
* LoggerInterface is a contract for logging something.
*
* Key feature: NullLogger MUST inherit from this interface like any other Loggers
* Key feature: NullLogger must inherit from this interface like any other loggers
*/
interface LoggerInterface
{
/**
* @param string $str
*
* @return mixed
*/
public function log($str);
public function log(string $str);
}