diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Notification.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Notification.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Notification.php b/src/Wallabag/CoreBundle/Entity/Notification.php index 6b30b044..aa4c03c3 100644 --- a/src/Wallabag/CoreBundle/Entity/Notification.php +++ b/src/Wallabag/CoreBundle/Entity/Notification.php | |||
@@ -12,6 +12,7 @@ use Wallabag\UserBundle\Entity\User; | |||
12 | 12 | ||
13 | /** | 13 | /** |
14 | * Class Notification. | 14 | * Class Notification. |
15 | * Class Notification | ||
15 | * | 16 | * |
16 | * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\NotificationRepository") | 17 | * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\NotificationRepository") |
17 | * @ORM\Table(name="`notification`") | 18 | * @ORM\Table(name="`notification`") |
@@ -24,32 +25,32 @@ class Notification implements NotificationInterface | |||
24 | * @ORM\Column(name="id", type="integer") | 25 | * @ORM\Column(name="id", type="integer") |
25 | * @ORM\Id | 26 | * @ORM\Id |
26 | * @ORM\GeneratedValue(strategy="AUTO") | 27 | * @ORM\GeneratedValue(strategy="AUTO") |
28 | * | ||
27 | */ | 29 | */ |
28 | protected $id; | 30 | protected $id; |
29 | 31 | ||
30 | /** | 32 | /** |
31 | * @var int | 33 | * @var int $type |
32 | * | 34 | * |
33 | * @ORM\Column(name="type", type="integer") | 35 | * @ORM\Column(name="type", type="integer") |
34 | */ | 36 | */ |
35 | protected $type; | 37 | protected $type; |
36 | 38 | ||
37 | /** | 39 | /** |
38 | * @var User | 40 | * @var User $user |
39 | * | 41 | * |
40 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="notifications") | 42 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="notifications") |
41 | */ | 43 | */ |
42 | protected $user; | 44 | protected $user; |
43 | 45 | ||
44 | /** | 46 | /** |
45 | * @var \DateTime | ||
46 | * | 47 | * |
47 | * @ORM\Column(name="timestamp", type="datetime") | 48 | * @ORM\Column(name="timestamp", type="datetime") |
48 | */ | 49 | */ |
49 | protected $timestamp; | 50 | protected $timestamp; |
50 | 51 | ||
51 | /** | 52 | /** |
52 | * @var string | 53 | * @var string $title |
53 | * | 54 | * |
54 | * @ORM\Column(name="title", type="string") | 55 | * @ORM\Column(name="title", type="string") |
55 | */ | 56 | */ |
@@ -63,7 +64,7 @@ class Notification implements NotificationInterface | |||
63 | protected $description; | 64 | protected $description; |
64 | 65 | ||
65 | /** | 66 | /** |
66 | * @var bool | 67 | * @var boolean $read |
67 | * | 68 | * |
68 | * @ORM\Column(name="read", type="boolean") | 69 | * @ORM\Column(name="read", type="boolean") |
69 | */ | 70 | */ |
@@ -225,7 +226,6 @@ class Notification implements NotificationInterface | |||
225 | * @param ActionInterface $action | 226 | * @param ActionInterface $action |
226 | * | 227 | * |
227 | * @return NotificationInterface | 228 | * @return NotificationInterface |
228 | * | ||
229 | * @throws \InvalidArgumentException | 229 | * @throws \InvalidArgumentException |
230 | */ | 230 | */ |
231 | public function addAction(ActionInterface $action) | 231 | public function addAction(ActionInterface $action) |
@@ -235,7 +235,6 @@ class Notification implements NotificationInterface | |||
235 | } | 235 | } |
236 | $this->actionTypes[$action->getType()] = true; | 236 | $this->actionTypes[$action->getType()] = true; |
237 | $this->actions->add($action); | 237 | $this->actions->add($action); |
238 | |||
239 | return $this; | 238 | return $this; |
240 | } | 239 | } |
241 | 240 | ||