Message::__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 setConvId( string $convId)
14
 * @method string getConvId()
15
 * @method null setTimestamp( int $timestamp)
16
 * @method int getTimestamp()
17
 * @method null setUser( string $user)
18
 * @method string getUser()
19
 * @method null setMessage( string $message)
20
 * @method string getMessage()
21
 */
22
class Message extends Entity{
23
24
	public $convid;
25
26
	public $timestamp;
27
28
	public $user;
29
30
	public $message;
31
32
33
	public function __construct(){
34
		$this->addType('timestamp', 'integer');
35
36
	}
37
38
}
39