* @package oat\tao\model */ interface SessionSubstitutionService { const SERVICE_ID = 'tao/SessionSubstitution'; /** * @param User $user * @return PretenderSession new session instance */ public function substituteSession(User $user); /** * @return boolean */ public function isSubstituted(); /** * @return void * @return common_session_Session original session instance */ public function revert(); }