Page::setData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
cc 1
nc 1
nop 1
crap 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