Passed
Push — master ( a8ff8f...cbaed7 )
by payever
02:47
created

PluginRegistryResponseEntity::getRequired()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * PHP version 5.4 and 7
4
 *
5
 * @package   Payever\Plugins
6
 * @author    Hennadii.Shymanskyi <[email protected]>
7
 * @copyright 2017-2019 payever GmbH
8
 * @license   MIT <https://opensource.org/licenses/MIT>
9
 */
10
11
namespace Payever\ExternalIntegration\Plugins\Http\ResponseEntity;
12
13
use Payever\ExternalIntegration\Core\Http\ResponseEntity;
14
15
/**
16
 * @method string getId()
17
 * @method string getPluginVersion()
18
 * @method string getCmsVersion()
19
 * @method string getChannel()
20
 * @method string getHost()
21
 * @method string[] getSupportedCommands()
22
 * @method string|null getCommandEndpoint()
23
 * @method string[] getBusinessIds()
24
 */
25
class PluginRegistryResponseEntity extends ResponseEntity
26
{
27
    /** @var string */
28
    protected $id;
29
30
    /** @var string */
31
    protected $pluginVersion;
32
33
    /** @var string */
34
    protected $cmsVersion;
35
36
    /**
37
     * @var string
38
     * @see ChannelSet
39
     */
40
    protected $channel;
41
42
    /** @var string */
43
    protected $host;
44
45
    /**
46
     * @var array
47
     * @see PluginCommandNameEnum
48
     */
49
    protected $supportedCommands;
50
51
    /** @var string */
52
    protected $commandEndpoint;
53
54
    /** @var string[] */
55
    protected $businessIds;
56
57
    /**
58
     * @return array
59
     */
60
    public function getRequired()
61
    {
62
        return array(
63
            'pluginVersion',
64
            'cmsVersion',
65
            'host',
66
            'channel',
67
        );
68
    }
69
}
70