1 | <?php |
||
29 | class Resume extends \Caridea\Auth\Event |
||
30 | { |
||
31 | /** |
||
32 | * @var float The authenticated first active time |
||
33 | */ |
||
34 | protected $firstActive; |
||
35 | /** |
||
36 | * @var float The authenticated most recent active time |
||
37 | */ |
||
38 | protected $lastActive; |
||
39 | |||
40 | /** |
||
41 | * Creates a new resume event. |
||
42 | * |
||
43 | * @param \Caridea\Auth\Service $source The source of the event. Cannot be null. |
||
44 | * @param \Caridea\Auth\Principal $principal The authenticated principal |
||
45 | * @param float $firstActive The authenticated first active time |
||
46 | * @param float $lastActive The authenticated most recent active time |
||
47 | */ |
||
48 | 2 | public function __construct(\Caridea\Auth\Service $source, \Caridea\Auth\Principal $principal, float $firstActive, float $lastActive) |
|
54 | |||
55 | /** |
||
56 | * Gets the authenticated first active time. |
||
57 | * |
||
58 | * @return float The authenticated first active time |
||
59 | */ |
||
60 | 2 | public function getFirstActive(): float |
|
64 | |||
65 | /** |
||
66 | * Gets the authenticated most recent active time. |
||
67 | * |
||
68 | * @return float The authenticated most recent active time |
||
69 | */ |
||
70 | 2 | public function getLastActive(): float |
|
74 | } |
||
75 |