UserOnline::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright (c) 2014, Tobia De Koninck hey--at--ledfan.be
4
 * This file is licensed under the AGPL version 3 or later.
5
 * See the COPYING file.
6
 */
7
8
namespace OCA\Chat\OCH\Db;
9
10
use \OCP\AppFramework\Db\Entity;
11
12
/**
13
 * @method null setUser( string $user)
14
 * @method string getUser()
15
 * @method null setSessionId(string $sessionId)
16
 * @method string getSessionId()
17
 * @method null setLastOnline(int $timestamp)
18
 * @method int getLastOnline()
19
 */
20
class UserOnline extends Entity {
21
22
	public $user;
23
	public $sessionId;
24
	public $lastOnline;
25
	
26
	public function __construct(){
27
        $this->addType('lastOnline', 'integer');
28
29
	}
30
}