Created AuthInterface

This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2012-09-25 19:32:35 +02:00
parent 61d0399828
commit 57a2da32cb
3 changed files with 17 additions and 57 deletions

View 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);
}