summaryrefslogtreecommitdiff
path: root/hauth/Hybrid/User.php
blob: 6461671a8a191c7a3c2519a62914e6dffdbf7427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php

/**
 * HybridAuth
 * http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
 * (c) 2009-2015, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
 */

/**
 * The Hybrid_User class represents the current logged in user
 */
class Hybrid_User {

	/**
	 * The ID (name) of the connected provider
	 * @var mixed
	 */
	public $providerId = null;

	/**
	 * Timestamp connection to the provider
	 * @var int
	 */
	public $timestamp = null;

	/**
	 * User profile, contains the list of fields available in the normalized user profile structure used by HybridAuth
	 * @var Hybrid_User_Profile
	 */
	public $profile = null;

	/**
	 * Initialize the user object
	 */
	function __construct() {
		$this->timestamp = time();
		$this->profile = new Hybrid_User_Profile();
	}

}