diff --git a/token/token_change_email.php b/token/token_change_email.php index 0fab731..398f824 100644 --- a/token/token_change_email.php +++ b/token/token_change_email.php @@ -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 * diff --git a/token/token_confirm_email.php b/token/token_confirm_email.php index 4dde5a9..2151383 100644 --- a/token/token_confirm_email.php +++ b/token/token_confirm_email.php @@ -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 * diff --git a/token/token_handler.php b/token/token_handler.php index 205dc9b..45fd734 100644 --- a/token/token_handler.php +++ b/token/token_handler.php @@ -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); } \ No newline at end of file diff --git a/token/token_reset_password.php b/token/token_reset_password.php index 39da0e3..5e86cb7 100644 --- a/token/token_reset_password.php +++ b/token/token_reset_password.php @@ -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 *