User::__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 setConversationId( string $convId)
14
 * @method string getConversationId()
15
 * @method null setUser( string $user)
16
 * @method string getUser()
17
 * @method string getSessionId()
18
 * @method null setJoined(int $timestamp)
19
 * @method int getJoined()
20
 */
21
class User extends Entity {
22
23
	public $conversationId;
24
	public $user;
25
	public $sessionId;
26
	public $joined;
27
28
	public function __construct(){
29
        $this->addType('joined', 'integer');
30
31
	}
32
}