NotificationAttachment   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 51
ccs 0
cts 17
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getAttachment() 0 4 1
A getId() 0 4 1
A getNotification() 0 4 1
1
<?php
2
3
namespace Yokai\MessengerBundle\Entity;
4
5
/**
6
 * @author Yann Eugoné <[email protected]>
7
 */
8
class NotificationAttachment
9
{
10
    /**
11
     * @var int
12
     */
13
    private $id;
14
15
    /**
16
     * @var Notification
17
     */
18
    private $notification;
19
20
    /**
21
     * @var string
22
     */
23
    private $attachment;
24
25
    /**
26
     * @param Notification $notification
27
     * @param string       $attachment
28
     */
29
    public function __construct(Notification $notification, $attachment)
30
    {
31
        $this->attachment = $attachment;
32
        $this->notification = $notification;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getAttachment()
39
    {
40
        return $this->attachment;
41
    }
42
43
    /**
44
     * @return int
45
     */
46
    public function getId()
47
    {
48
        return $this->id;
49
    }
50
51
    /**
52
     * @return Notification
53
     */
54
    public function getNotification()
55
    {
56
        return $this->notification;
57
    }
58
}
59