for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Tharanga Kothalawala <[email protected]>
* @date 30-12-2018
*/
namespace TSK\SSO\AppUser;
* @package TSK\SSO\AppUser
*
* This represents a user within the client application with their basic data.
abstract class AppUser
{
* @var string
private $id;
private $email;
* @param string $id the unique id of the application's user entity. ex: a UUID
* @param string $email the email address of the application's user entity
public function __construct($id, $email)
$this->id = $id;
$this->email = $email;
}
* @return string
public function id()
return $this->id;
public function email()
return $this->email;
* Returns true if this user is an existing user or newly created one.
* @return bool
abstract public function isExistingUser();