UserOnline   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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
}