Skip to content

Instantly share code, notes, and snippets.

@alanwillms
Created November 1, 2016 12:54
Show Gist options
  • Save alanwillms/2276b6cf4d57fd71a224249a0bfec562 to your computer and use it in GitHub Desktop.
Save alanwillms/2276b6cf4d57fd71a224249a0bfec562 to your computer and use it in GitHub Desktop.
ISP-7
<?php
interface IdentificavelPorChaveDeAutenticacao
{
public static function encontrarIdentidade($id);
public function getId();
public function getChaveAutenticacao();
public function validarChaveAutenticacao($chaveAutenticacao);
}
interface IdentificavelPorToken
{
public static function encontrarIdentidadePeloToken($token, $tipo = null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment