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

SystemPropertyPayload   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 44
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setKey() 0 3 1
A setValue() 0 3 1
A getKey() 0 3 1
A getValue() 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 SystemProperty related REST Endpoint
18
 * Class SystemPropertyPayload
19
 * @package Gnello\OpenFireRestAPI\Payloads
20
 * @link http://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html#system-property
21
 */
22
class SystemPropertyPayload extends AbstractPayload
23
{
24
    /**
25
     * The name of the system property
26
     * Optional No
27
     * @var string
28
     */
29
    private $key;
30
31
    /**
32
     * The value of the system property
33
     * Optional Yes
34
     * @var string
35
     */
36
    private $value;
37
38
    /**
39
     * @param $key
40
     */
41
    public function setKey($key) {
42
        $this->key = $key;
43
    }
44
45
    /**
46
     * @param $value
47
     */
48
    public function setValue($value) {
49
        $this->value = $value;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getKey() {
56
        return $this->key;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getValue() {
63
        return $this->value;
64
    }
65
}