rosehill/libraries/Blossom/Classes/ExternalIdentity.php

37 lines
841 B
PHP
Raw Normal View History

<?php
/**
2014-08-18 19:53:40 +00:00
* @copyright 2011-2013 City of Bloomington, Indiana
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
* @author Cliff Ingham <inghamn@bloomington.in.gov>
*/
2014-08-18 19:53:40 +00:00
namespace Blossom\Classes;
interface ExternalIdentity
{
/**
* Should load user data from storage
*/
public function __construct($username);
/**
* Return whether the username, password combo is valid
*
* @param string $username
* @param string $password The unencrypted password
* @return bool
*/
public static function authenticate($username,$password);
/**
* @return string
*/
public function getFirstname();
public function getLastname();
public function getEmail();
2014-08-18 19:53:40 +00:00
public function getPhone();
public function getAddress();
public function getCity();
public function getState();
public function getZip();
}