-
Notifications
You must be signed in to change notification settings - Fork 183
/
MessageInterface.php
58 lines (48 loc) · 966 Bytes
/
MessageInterface.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
52
53
54
55
56
57
58
<?php
namespace Ornicar\MessageBundle\Model;
use Ornicar\MessageBundle\Model\ParticipantInterface;
/**
* Message model
*
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
*/
interface MessageInterface extends ReadableInterface
{
/**
* Gets the message unique id
*
* @return mixed
*/
function getId();
/**
* @return ThreadInterface
*/
function getThread();
/**
* @param ThreadInterface
* @return null
*/
function setThread(ThreadInterface $thread);
/**
* @return DateTime
*/
function getCreatedAt();
/**
* @return string
*/
function getBody();
/**
* @param string
* @return null
*/
function setBody($body);
/**
* @return ParticipantInterface
*/
function getSender();
/**
* @param ParticipantInterface
* @return null
*/
function setSender(ParticipantInterface $sender);
}