Created NullLogger to log nothing.
This commit is contained in:
parent
24cf8f4c0d
commit
b52fc4c054
22
src/SmsGateway/Logger/NullLogger.php
Normal file
22
src/SmsGateway/Logger/NullLogger.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace SmsGateway\Logger;
|
||||
|
||||
use SmsGateway\LoggerInterface;
|
||||
|
||||
/**
|
||||
* Description of NullLogger
|
||||
*
|
||||
* @author polonkai.gergely
|
||||
*/
|
||||
class NullLogger implements LoggerInterface
|
||||
{
|
||||
public function auditLog($type, $username, $message)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function messageLog($username, $recipient, $message, array $passwordLocations)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user