Completed
Push — master ( 5d5473...3f41e3 )
by Luca
02:37
created

MessagePayload::getBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * OpenFireRestAPI is based entirely on official documentation of the REST API
4
 * Plugin and you can extend it by following the directives of the documentation
5
 *
6
 * For the full copyright and license information, please read the LICENSE
7
 * file that was distributed with this source code. For the full list of
8
 * contributors, visit https://github.com/gnello/PHPOpenFireRestAPI/contributors
9
 *
10
 * @author Luca Agnello <[email protected]>
11
 * @link https://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html
12
 */
13
14
namespace Gnello\OpenFireRestAPI\Payloads;
15
16
/**
17
 * Payload of Message related REST Endpoint
18
 * Class MessagePayload
19
 * @package Gnello\OpenFireRestAPI\Payloads
20
 */
21
class MessagePayload extends AbstractPayload
22
{
23
    /**
24
     * The body of the message
25
     * Optional No
26
     * @var string
27
     */
28
    private $body;
29
30
    /**
31
     * @param $body
32
     */
33
    public function setBody($body) {
34
        $this->body = $body;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getBody() {
41
        return $this->body;
42
    }
43
}