-
Notifications
You must be signed in to change notification settings - Fork 453
/
UserSignupNotification.php
51 lines (45 loc) · 1.18 KB
/
UserSignupNotification.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
<?php
namespace Concrete\Core\Entity\Notification;
use Concrete\Core\Notification\Subject\SubjectInterface;
use Concrete\Core\Notification\View\UserSignupListView;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(
* name="UserSignupNotifications"
* )
*/
class UserSignupNotification extends Notification
{
/**
* @ORM\ManyToOne(targetEntity="\Concrete\Core\Entity\User\UserSignup", cascade={"persist", "remove"}, inversedBy="notifications"),
* @ORM\JoinColumn(name="usID", referencedColumnName="usID")
*
* @var \Concrete\Core\Entity\User\UserSignup
*/
protected $signup;
/**
* @param \Concrete\Core\Entity\User\UserSignup $signup
*/
public function __construct(SubjectInterface $signup)
{
$this->signup = $signup;
parent::__construct($signup);
}
/**
* @return \Concrete\Core\Entity\User\UserSignup
*/
public function getSignupRequest()
{
return $this->signup;
}
/**
* {@inheritdoc}
*
* @see \Concrete\Core\Entity\Notification\Notification::getListView()
*/
public function getListView()
{
return new UserSignupListView($this);
}
}