1 | <?php |
||
23 | abstract class Message implements MessageInterface |
||
|
|||
24 | { |
||
25 | /** |
||
26 | * The unique id of the message |
||
27 | * |
||
28 | * @var integer The unique id of the message |
||
29 | */ |
||
30 | protected $id; |
||
31 | |||
32 | /** |
||
33 | * The creation time of the message |
||
34 | * |
||
35 | * @var \DateTime |
||
36 | */ |
||
37 | protected $createdAt; |
||
38 | |||
39 | /** |
||
40 | * The sender of the message |
||
41 | * |
||
42 | * @var ParticipantInterface |
||
43 | */ |
||
44 | protected $sender; |
||
45 | |||
46 | /** |
||
47 | * The body of the message |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $body; |
||
52 | |||
53 | /** |
||
54 | * A collection of message metas |
||
55 | * |
||
56 | * @var ArrayCollection |
||
57 | */ |
||
58 | protected $messageMeta; |
||
59 | |||
60 | /** |
||
61 | * The thread this message belongs to |
||
62 | * |
||
63 | * @var ThreadInterface |
||
64 | */ |
||
65 | protected $thread; |
||
66 | |||
67 | /** |
||
68 | * Constructor. |
||
69 | */ |
||
70 | public function __construct() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function getId() |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function setCreatedAt(\DateTime $createdAt) |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getCreatedAt() |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function getBody() |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function setBody($body) |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function setSender(ParticipantInterface $sender) |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function getSender() |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | public function addMessageMeta(MessageMetaInterface $messageMeta) |
||
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | */ |
||
143 | public function getMessageMeta() |
||
147 | |||
148 | /** |
||
149 | * {@inheritdoc} |
||
150 | */ |
||
151 | public function getMessageMetaForParticipant(ParticipantInterface $participant) |
||
161 | |||
162 | /** |
||
163 | * {@inheritdoc} |
||
164 | */ |
||
165 | public function setThread(ThreadInterface $thread) |
||
169 | |||
170 | /** |
||
171 | * {@inheritdoc} |
||
172 | */ |
||
173 | public function getThread() |
||
177 | } |
||
178 |
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.