-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathUser.php
71 lines (62 loc) · 1.3 KB
/
User.php
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\SPI\Persistence;
class User extends ValueObject
{
/**
* User ID.
*
* @var mixed
*/
public $id;
/**
* User login.
*
* @var string
*/
public $login;
/**
* User E-Mail address.
*
* @var string
*/
public $email;
/**
* User password hash.
*
* @var string
*/
public $passwordHash;
/**
* Timestamp of last password update.
*
* @var int|null
*/
public $passwordUpdatedAt;
/**
* Hash algorithm used to has the password.
*
* @var int
*/
public $hashAlgorithm;
/**
* Flag to signal if user is enabled or not.
*
* User can not login if false
*
* @var bool
*/
public $isEnabled = false;
/**
* Max number of time user is allowed to login.
*
* @todo: Not used in kernel, should probably be a number of login allowed before changing password.
* But new users gets 0 before they activate, admin has 10, and anonymous has 1000 in clean data.
*
* @var int
*/
public $maxLogin = 0;
}