fixed token strict warning

This commit is contained in:
Ulf Gebhardt 2016-11-20 17:12:23 +01:00
parent 3d4c0828d2
commit 4251bdc4e7
4 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ namespace SYSTEM\TOKEN;
/**
* Email Change Token handler Class provided by System to provide a email-change mechanism.
*/
class token_change_email extends token_handler{
class token_change_email implements token_handler{
/**
* Generate the Token
*

View File

@ -14,7 +14,7 @@ namespace SYSTEM\TOKEN;
/**
* Confirm Email Token handler Class provided by System to provide a email-confirmation mechanism.
*/
class token_confirm_email extends token_handler{
class token_confirm_email implements token_handler{
/**
* Generate the Token
*

View File

@ -14,20 +14,20 @@ namespace SYSTEM\TOKEN;
/**
* Abstract token_handler Class provided by System to provide API for any token mechanism.
*/
abstract class token_handler {
interface token_handler {
/**
* Generate the Token
*
* @return string Returns token string.
*/
abstract public static function token();
static function token();
/**
* Expiredate when the Token expires
*
* @return int Returns unixtimestamp when the token expires.
*/
abstract public static function expire();
static function expire();
/**
* Token confirm processing for the token_handler
@ -35,5 +35,5 @@ abstract class token_handler {
* @param array Token data from db
* @return bool Returns true or false.
*/
abstract public static function confirm($token_data);
static function confirm($token_data);
}

View File

@ -14,7 +14,7 @@ namespace SYSTEM\TOKEN;
/**
* Reset Password Token handler Class provided by System to provide a reset-password mechanism.
*/
class token_reset_password extends token_handler{
class token_reset_password implements token_handler{
/**
* Generate the Token
*