/
NotificationAlert.php
105 lines (90 loc) · 2.32 KB
/
NotificationAlert.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
namespace Concrete\Core\Entity\Notification;
use Concrete\Core\Attribute\AttributeValueInterface;
use Concrete\Core\Entity\Attribute\Key\Key;
use Concrete\Core\Notification\Formatter\StandardFormatter;
use Concrete\Core\Notification\Formatter\UserSignupFormatter;
use Concrete\Core\Notification\Subject\SubjectInterface;
use Concrete\Core\Notification\View\ListableInterface;
use Concrete\Core\Notification\View\ListViewPopulatorInterface;
use Concrete\Core\Notification\View\UserSignupView;
use Concrete\Core\Notification\View\ViewInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="\Concrete\Core\Entity\Notification\NotificationAlertRepository")
* @ORM\Table(
* name="NotificationAlerts"
* )
*/
class NotificationAlert
{
/**
* @ORM\Id @ORM\Column(type="integer", options={"unsigned":true})
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $naID;
/**
* @ORM\ManyToOne(targetEntity="Concrete\Core\Entity\User\User")
* @ORM\JoinColumn(name="uID", referencedColumnName="uID")
*/
protected $user;
/**
* @ORM\ManyToOne(targetEntity="\Concrete\Core\Entity\Notification\Notification", inversedBy="alerts")
* @ORM\JoinColumn(name="nID", referencedColumnName="nID")
*/
protected $notification;
/**
* @ORM\Column(type="boolean")
*/
protected $naIsArchived = false;
/**
* @return mixed
*/
public function isNotificationArchived()
{
return $this->naIsArchived;
}
/**
* @param mixed $nIsArchived
*/
public function setNotificationIsArchived($naIsArchived)
{
$this->naIsArchived = $naIsArchived;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return mixed
*/
public function getNotification()
{
return $this->notification;
}
/**
* @param mixed $notification
*/
public function setNotification($notification)
{
$this->notification = $notification;
}
/**
* @return mixed
*/
public function getNotificationAlertID()
{
return $this->naID;
}
}