NotificationAttachment::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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