* @package Mammut\Auth */ abstract class Base extends \Mammut\StdObject { /** * * @var iAuthClient */ private $handler; /** * * @var string */ private $realm; public function __construct(iAuthClient $handler, $realm) { $this->handler = $handler; $this->realm = $realm; } /** * * @return iAuthClient */ protected function getHandler() { return $this->handler; } public function getRealm() { return $this->realm; } abstract public function isAuthenticated(); abstract public function getUser(); }