| 1 | <?php |
||
| 24 | abstract class AbstractNewMessage implements NewMessageInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Body of the message |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $body; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Creation time of the message |
||
| 34 | * @var \DateTime |
||
| 35 | */ |
||
| 36 | protected $createdAt; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Sender of the message |
||
| 40 | * @var ParticipantInterface |
||
| 41 | */ |
||
| 42 | protected $sender; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Constructor. |
||
| 46 | * |
||
| 47 | */ |
||
| 48 | public function __construct() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function getBody() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | public function getCreatedAt() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | public function getSender() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * {@inheritdoc} |
||
| 80 | */ |
||
| 81 | public function setBody($body) |
||
| 85 | |||
| 86 | /** |
||
| 87 | * {@inheritdoc} |
||
| 88 | */ |
||
| 89 | public function setCreatedAt(\DateTime $createdAt) |
||
| 93 | |||
| 94 | /** |
||
| 95 | * {@inheritdoc} |
||
| 96 | */ |
||
| 97 | public function setSender(\Miliooo\Messaging\User\ParticipantInterface $sender) |
||
| 101 | } |
||
| 102 |