Comment   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 50
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getEvent() 0 4 1
A setEvent() 0 4 1
A getAuthor() 0 4 1
A setAuthor() 0 4 1
A getDate() 0 4 1
A setDate() 0 4 1
A getText() 0 4 1
A setText() 0 4 1
1
<?php
2
3
/*
4
 * This is part of the webuni/srazy-api-client.
5
 *
6
 * (c) Martin Hasoň <[email protected]>
7
 * (c) Webuni s.r.o. <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Webuni\Srazy\Model;
14
15
class Comment
16
{
17
    private $event;
18
19
    private $author;
20
21
    private $date;
22
23
    private $text;
24
25
    public function getEvent()
26
    {
27
        return $this->event;
28
    }
29
30
    public function setEvent(Event $event)
31
    {
32
        $this->event = $event;
33
    }
34
35
    public function getAuthor()
36
    {
37
        return $this->author;
38
    }
39
40
    public function setAuthor(User $author)
41
    {
42
        $this->author = $author;
43
    }
44
45
    public function getDate()
46
    {
47
        return $this->date;
48
    }
49
50
    public function setDate(\DateTime $date)
51
    {
52
        $this->date = $date;
53
    }
54
55
    public function getText()
56
    {
57
        return $this->text;
58
    }
59
60
    public function setText($text)
61
    {
62
        $this->text = $text;
63
    }
64
}
65