Completed
Push — master ( d82d84...28a6d6 )
by Yann
03:27
created

NotificationAttachment::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Yokai\MessengerBundle\Entity;
4
5
/**
6
 * Notification Attachment Doctrine ORM entity
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