Completed
Push — master ( fa98ea...c23364 )
by Luca
02:32
created

Payload::createRosterItemPayload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 3
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 creator
18
 * Class Payload
19
 * @package Gnello\OpenFireRestAPI\Payloads
20
 */
21
class Payload
22
{
23
    /**
24
     * @return ChatRoomPayload
25
     */
26
    public function createChatRoomPayload() {
27
        $args = func_get_args();
28
        return new ChatRoomPayload($args);
29
    }
30
31
    /**
32
     * @return GroupPayload
33
     */
34
    public function createGroupPayload() {
35
        $args = func_get_args();
36
        return new GroupPayload($args);
37
    }
38
39
    /**
40
     * @return MessagePayload
41
     */
42
    public function createMessagePayload() {
43
        $args = func_get_args();
44
        return new MessagePayload($args);
45
    }
46
47
    /**
48
     * @return RosterItemPayload
49
     */
50
    public function createRosterItemPayload() {
51
        $args = func_get_args();
52
        return new RosterItemPayload($args);
53
    }
54
55
    /**
56
     * @return SystemPropertyPayload
57
     */
58
    public function createSystemPropertyPayload() {
59
        $args = func_get_args();
60
        return new SystemPropertyPayload($args);
61
    }
62
63
    /**
64
     * @return UserPayload
65
     */
66
    public function createUserPayload() {
67
        $args = func_get_args();
68
        return new UserPayload($args);
69
    }
70
}