SubscriptionActionEntity::getRequired()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * PHP version 5.4 and 8
5
 *
6
 * @category  MessageEntity
7
 * @package   Payever\ThirdParty
8
 * @author    payever GmbH <[email protected]>
9
 * @author    Hennadii.Shymanskyi <[email protected]>
10
 * @copyright 2017-2021 payever GmbH
11
 * @license   MIT <https://opensource.org/licenses/MIT>
12
 * @link      https://docs.payever.org/shopsystems/api/getting-started
13
 */
14
15
namespace Payever\ExternalIntegration\ThirdParty\Http\MessageEntity;
16
17
use Payever\ExternalIntegration\Core\Base\MessageEntity;
18
use Payever\ExternalIntegration\ThirdParty\Enum\ActionEnum;
19
20
/**
21
 * @method string getName()
22
 * @method string getUrl()
23
 * @method string getMethod()
24
 * @method self setName(string $name)
25
 * @method self setUrl(string $url)
26
 * @method self setMethod(string $httpMethod)
27
 */
28
class SubscriptionActionEntity extends MessageEntity
29
{
30
    const UNDERSCORE_ON_SERIALIZATION = false;
31
32
    /**
33
     * @var string
34
     * @see ActionEnum
35
     */
36
    protected $name;
37
38
    /** @var string */
39
    protected $url;
40
41
    /** @var string */
42
    protected $method;
43
44
    /**
45
     * @return array
46
     */
47
    public function getRequired()
48
    {
49
        return [
50
            'name',
51
            'url',
52
            'method',
53
        ];
54
    }
55
}
56