Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | /** |
4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License |
6 | * as published by the Free Software Foundation; under version 2 |
7 | * of the License (non-upgradable). |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | * |
18 | * Copyright (c) 2017 (original work) Open Assessment Technologies SA; |
19 | * |
20 | */ |
21 | |
22 | namespace oat\tao\model\notification; |
23 | |
24 | /** |
25 | * Interface NotificationInterface |
26 | * |
27 | * @deprecated This class is used by client only. It will be moved to client specific extension |
28 | */ |
29 | interface NotificationInterface |
30 | { |
31 | public const DEFAULT_STATUS = 0; |
32 | |
33 | public const CREATED_STATUS = 0; |
34 | public const SENDING_STATUS = 1; |
35 | public const SENDED_STATUS = 2; |
36 | public const READ_STATUS = 3; |
37 | public const ARCHIVED_STATUS = 4; |
38 | |
39 | /** |
40 | * @return int |
41 | */ |
42 | public function getStatus(): int; |
43 | |
44 | /** |
45 | * @return string |
46 | */ |
47 | public function getRecipient(): string; |
48 | |
49 | /** |
50 | * @return string |
51 | */ |
52 | public function getSenderId(): string; |
53 | |
54 | /** |
55 | * @return string |
56 | */ |
57 | public function getSenderName(): string; |
58 | |
59 | /** |
60 | * @return string |
61 | */ |
62 | public function getMessage(): string; |
63 | |
64 | /** |
65 | * @return int |
66 | */ |
67 | public function getCreatedAt(): string; |
68 | |
69 | /** |
70 | * @return int |
71 | */ |
72 | public function getUpdatedAt(): string; |
73 | |
74 | /** |
75 | * @return string |
76 | */ |
77 | public function getId(): string; |
78 | |
79 | /** |
80 | * @param int $status |
81 | * |
82 | * @return NotificationInterface |
83 | */ |
84 | public function setStatus($status): self; |
85 | |
86 | /** |
87 | * @param string $id |
88 | * |
89 | * @return NotificationInterface |
90 | */ |
91 | public function setId($id): self; |
92 | |
93 | /** |
94 | * @return string |
95 | */ |
96 | public function getTitle(): string; |
97 | } |