Created AuthInterface
This commit is contained in:
17
src/SmsGateway/AuthInterface.php
Normal file
17
src/SmsGateway/AuthInterface.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace SmsGateway;
|
||||
|
||||
use SmsGateway\LoggerInterface;
|
||||
|
||||
interface AuthInterface
|
||||
{
|
||||
public function setLogger(LoggerInterface $logger);
|
||||
|
||||
public function getLogger();
|
||||
|
||||
public function getToken($username, $ip, $sessionId);
|
||||
|
||||
public function isTokenValid($token, $ip, $sessionId);
|
||||
|
||||
public function removeToken($token, $ip, $sessionId);
|
||||
}
|
Reference in New Issue
Block a user