Exemple1   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 77
rs 10
c 0
b 0
f 0
ccs 0
cts 14
cp 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A get_id() 0 4 1
A set_id() 0 5 1
A get_title() 0 4 1
A set_title() 0 5 1
1
<?php
2
3
/**
4
 * Model Exemple1
5
 *
6
 * @category  	Venus\src\
7
 * @package   	Venus\src\Demo\Entity
8
 * @author    	Judicaël Paquet <[email protected]>
9
 * @copyright 	Copyright (c) 2013-2014 PAQUET Judicaël FR Inc. (https://github.com/las93)
10
 * @license   	https://github.com/las93/venus2/blob/master/LICENSE.md Tout droit réservé à PAQUET Judicaël
11
 * @version   	Release: 1.0.0
12
 * @filesource	https://github.com/las93/venus2
13
 * @link      	https://github.com/las93
14
 * @since     	1.0
15
 */
16
17
namespace Venus\src\Demo\Entity;
18
19
use \Venus\src\Demo\common\Entity as Entity;
20
21
/**
22
 * Model Exemple1
23
 *
24
 * @category  	Venus\src\
25
 * @package   	Venus\src\Demo\Entity
26
 * @author    	Judicaël Paquet <[email protected]>
27
 * @copyright 	Copyright (c) 2013-2014 PAQUET Judicaël FR Inc. (https://github.com/las93)
28
 * @license   	https://github.com/las93/venus2/blob/master/LICENSE.md Tout droit réservé à PAQUET Judicaël
29
 * @version   	Release: 1.0.0
30
 * @filesource	https://github.com/las93/venus2
31
 * @link      	https://github.com/las93
32
 * @since     	1.0
33
 */
34
35
class Exemple1 extends Entity {
36
37
	/**
38
	 * id
39
	 *
40
	 * @access private
41
	 * @var    int
42
	 *
43
	 * @primary_key
44
	 */
45
46
	private $id = null;
47
48
49
50
	/**
51
	 * title
52
	 *
53
	 * @access private
54
	 * @var    string
55
	 *
56
	 */
57
58
	private $title = null;
59
60
	/**
61
	 * get id of article
62
	 *
63
	 * @access public
64
	 * @return int
65
	 */
66
67
	public function get_id() {
68
69
		return $this->id;
70
	}
71
72
	/**
73
	 * set id of article
74
	 *
75
	 * @access public
76
	 * @param  int $id id of article
77
	 * @return \src\FrontOffice\Entity\article
78
	 */
79
80
	public function set_id($id) {
81
82
		$this->id = $id;
83
		return $this;
84
	}
85
86
	/**
87
	 * get title of article
88
	 *
89
	 * @access public
90
	 * @return string
91
	 */
92
93
	public function get_title() {
94
95
		return $this->title;
96
	}
97
98
	/**
99
	 * set title of article
100
	 *
101
	 * @access public
102
	 * @param  string $title title of article
103
	 * @return \src\FrontOffice\Entity\article
104
	 */
105
106
	public function set_title($title) {
107
108
		$this->title = $title;
109
		return $this;
110
	}
111
}
112