NotificationLog   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getTriggerId() 0 4 1
A getServerId() 0 4 1
A getMessage() 0 4 1
A setTriggerId() 0 4 1
A setServerId() 0 4 1
A setMessage() 0 4 1
A setCreated() 0 4 1
1
<?php
2
namespace Monitor\Model;
3
4
/**
5
 * @Entity @Table(name="notification_logs")
6
 **/
7
class NotificationLog
8
{
9
    /**
10
     * @Id @Column(type="integer") @GeneratedValue
11
     **/
12
    private $id;
13
    /**
14
     * @Column(type="integer")
15
     **/
16
    private $trigger_id;
17
    /**
18
     * @Column(type="integer")
19
     **/
20
    private $server_id;
21
    /**
22
     * @Column(type="string")
23
     **/
24
    private $message;
25
    /**
26
     * @Column(type="integer")
27
     **/
28
    private $created;
29
30
    public function getId()
31
    {
32
        return $this->id;
33
    }
34
35
    public function getTriggerId()
36
    {
37
        return $this->trigger_id;
38
    }
39
40
    public function getServerId()
41
    {
42
        return $this->server_id;
43
    }
44
45
    public function getMessage()
46
    {
47
        return $this->message;
48
    }
49
50
    public function setTriggerId($triggerId)
51
    {
52
        $this->trigger_id = $triggerId;
53
    }
54
55
    public function setServerId($serverId)
56
    {
57
        $this->server_id = $serverId;
58
    }
59
    public function setMessage($text)
60
    {
61
        $this->message = $text;
62
    }
63
64
    public function setCreated($created)
65
    {
66
        $this->created = $created;
67
    }
68
}
69