Passed
Branch master (776013)
by payever
03:51
created

SubscriptionActionEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequired() 0 6 1
1
<?php
2
/**
3
 * PHP version 5.4 and 7
4
 *
5
 * @package   Payever\ThirdParty
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\ThirdParty\Http\MessageEntity;
12
13
use Payever\ExternalIntegration\Core\Base\MessageEntity;
14
15
/**
16
 * PHP version 5.4 and 7
17
 *
18
 * @package   Payever\ThirdParty
19
 * @author    payever GmbH <[email protected]>
20
 * @author    Hennadii.Shymanskyi <[email protected]>
21
 * @copyright 2017-2019 payever GmbH
22
 * @license   MIT <https://opensource.org/licenses/MIT>
23
 *
24
 *
25
 * @method string getName()
26
 * @method string getUrl()
27
 * @method string getMethod()
28
 * @method self setName(string $name)
29
 * @method self setUrl(string $url)
30
 * @method self setMethod(string $httpMethod)
31
 */
32
class SubscriptionActionEntity extends MessageEntity
33
{
34
    const UNDERSCORE_ON_SERIALIZATION = false;
35
36
    /** @var string */
37
    protected $name;
38
39
    /** @var string */
40
    protected $url;
41
42
    /** @var string */
43
    protected $method;
44
45
    /**
46
     * @return array
47
     */
48
    public function getRequired()
49
    {
50
        return array(
51
            'name',
52
            'url',
53
            'method',
54
        );
55
    }
56
}
57