Message   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
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 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