mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 17:52:25 +01:00
19 lines
326 B
PHP
19 lines
326 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\NullObject;
|
|
|
|
/**
|
|
* LoggerInterface is a contract for logging something
|
|
*
|
|
* Key feature: NullLogger MUST inherit from this interface like any other Loggers
|
|
*/
|
|
interface LoggerInterface
|
|
{
|
|
/**
|
|
* @param string $str
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function log($str);
|
|
}
|