Page   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 77.27%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 58
rs 10
c 0
b 0
f 0
ccs 17
cts 22
cp 0.7727

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getId() 0 4 1
A setId() 0 4 1
A getUpdated() 0 4 1
A setUpdated() 0 4 1
A getData() 0 4 1
A setData() 0 4 1
A getTemplate() 0 4 1
A setTemplate() 0 4 1
1
<?php
2
3
namespace Columnis\Model;
4
5
class Page
6
{
7
8
    protected $id;
9
    protected $updated;
10
    protected $data;
11
    
12
    /**
13
     * @var Template $template
14
     */
15
    protected $template;
16
17 4
    public function __construct()
18
    {
19 4
    }
20
21 4
    public function getId()
22
    {
23 4
        return $this->id;
24
    }
25
26 4
    public function setId($id)
27
    {
28 4
        $this->id = $id;
29 4
    }
30
31
    public function getUpdated()
32
    {
33
        return $this->updated;
34
    }
35
36
    public function setUpdated($updated)
37
    {
38
        $this->updated = $updated;
39
    }
40
    
41 1
    public function getData()
42
    {
43 1
        return $this->data;
44
    }
45
    
46 1
    public function setData($data)
47
    {
48 1
        $this->data = $data;
49 1
    }
50
    
51
    /**
52
     * @return Template
53
     */
54 1
    public function getTemplate()
55
    {
56 1
        return $this->template;
57
    }
58 1
    public function setTemplate(Template $template)
59
    {
60 1
        $this->template = $template;
61 1
    }
62
}
63