mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 22:09:23 +02:00
add a simple example with a null logger
This commit is contained in:
16
NullObject/LoggerInterface.php
Normal file
16
NullObject/LoggerInterface.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* DesignPatternPHP
|
||||
*/
|
||||
|
||||
namespace DesignPatterns\NullObject;
|
||||
|
||||
/**
|
||||
* LoggerInterface is a contract for logging something
|
||||
*/
|
||||
interface LoggerInterface
|
||||
{
|
||||
|
||||
public function log($str);
|
||||
}
|
Reference in New Issue
Block a user