1 | <?php |
||
20 | abstract class ThreadMeta implements ThreadMetaInterface |
||
|
|||
21 | { |
||
22 | /** |
||
23 | * The unique id of the thread |
||
24 | * |
||
25 | * @var integer |
||
26 | */ |
||
27 | protected $id; |
||
28 | |||
29 | /** |
||
30 | * The thread this meta belongs to |
||
31 | * |
||
32 | * @var ThreadInterface |
||
33 | */ |
||
34 | protected $thread; |
||
35 | |||
36 | /** |
||
37 | * The participant of the thread meta |
||
38 | * |
||
39 | * @var ParticipantInterface |
||
40 | */ |
||
41 | protected $participant; |
||
42 | |||
43 | /** |
||
44 | * The status of the given thread for the participant |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $status; |
||
49 | |||
50 | /** |
||
51 | * Datetime of the last message written by the participant |
||
52 | * |
||
53 | * @var \DateTime |
||
54 | */ |
||
55 | protected $lastParticipantMessageDate; |
||
56 | |||
57 | /** |
||
58 | * Datetime of the last message written by another participant |
||
59 | * |
||
60 | * @var \DateTime |
||
61 | */ |
||
62 | protected $lastMessageDate; |
||
63 | |||
64 | /** |
||
65 | * The number of unread messages for the participant for the given thread. |
||
66 | * |
||
67 | * @var integer |
||
68 | */ |
||
69 | protected $unreadMessageCount = 0; |
||
70 | |||
71 | /** |
||
72 | * Constructor. |
||
73 | */ |
||
74 | public function __construct() |
||
78 | |||
79 | /** |
||
80 | * Gets the unique id |
||
81 | * |
||
82 | * @return integer|null |
||
83 | */ |
||
84 | public function getId() |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function setThread(ThreadInterface $thread) |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function getThread() |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function setParticipant(ParticipantInterface $participant) |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | public function getParticipant() |
||
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | public function getStatus() |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | * @param $status |
||
132 | */ |
||
133 | public function setStatus($status) |
||
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | public function setLastParticipantMessageDate(\DateTime $dateTime) |
||
149 | |||
150 | /** |
||
151 | * {@inheritdoc} |
||
152 | */ |
||
153 | public function getLastParticipantMessageDate() |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function getLastMessageDate() |
||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | public function setLastMessageDate(\DateTime $lastMessageDate) |
||
173 | |||
174 | /** |
||
175 | * {@inheritdoc} |
||
176 | */ |
||
177 | public function getUnreadMessageCount() |
||
181 | |||
182 | /** |
||
183 | * {@inheritdoc} |
||
184 | */ |
||
185 | public function setUnreadMessageCount($unreadCount) |
||
189 | } |
||
190 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.