Passed
Push — master ( 302660...3652f8 )
by payever
04:19 queued 01:32
created

ListPaymentOptionsCallEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setChannelSet() 0 3 1
1
<?php
2
3
/**
4
 * PHP version 5.4 and 8
5
 *
6
 * @category  MessageEntity
7
 * @package   Payever\Payments
8
 * @author    payever GmbH <[email protected]>
9
 * @copyright 2017-2021 payever GmbH
10
 * @license   MIT <https://opensource.org/licenses/MIT>
11
 * @link      https://docs.payever.org/shopsystems/api/getting-started
12
 */
13
14
namespace Payever\ExternalIntegration\Payments\Http\MessageEntity;
15
16
use Payever\ExternalIntegration\Core\Http\MessageEntity\CallEntity;
17
use Payever\ExternalIntegration\Core\Http\MessageEntity\ChannelSetEntity;
18
19
/**
20
 * This class represents List Payment Options Call Entity
21
 *
22
 * @method string           getAction()
23
 * @method string           getChannel()
24
 * @method ChannelSetEntity getChannelSet()
25
 * @method string           getType()
26
 * @method self             setAction(string $action)
27
 * @method self             setChannel(string $channel)
28
 * @method self             setType(string $type)
29
 */
30
class ListPaymentOptionsCallEntity extends CallEntity
31
{
32
    /** @var string $action */
33
    protected $action;
34
35
    /** @var string $channel */
36
    protected $channel;
37
38
    /** @var ChannelSetEntity $channelSet */
39
    protected $channelSet;
40
41
    /** @var string $type */
42
    protected $type;
43
44
    /**
45
     * Sets Channel Set
46
     *
47
     * @param array $channelSet
48
     */
49
    public function setChannelSet($channelSet)
50
    {
51
        $this->channelSet = new ChannelSetEntity($channelSet);
52
    }
53
}
54