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

MessagePayload   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setBody() 0 3 1
A getBody() 0 3 1
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
}