Passed
Push — master ( c06059...bfa84d )
by payever
03:42
created

ChannelEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 3 2
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\Base\MessageEntity;
17
18
/**
19
 * This class represents Cart Item Entity
20
 *
21
 * @method string           getName()
22
 * @method string           getType()
23
 * @method string           getSource()
24
 * @method string           getChannelSetId()
25
 * @method self             setName(string $name)
26
 * @method self             setType(string $type)
27
 * @method self             setSource(string $source)
28
 * @method self             setChannelSetId(string $channelSetId)
29
 */
30
class ChannelEntity extends MessageEntity
31
{
32
    /** @var string $name */
33
    protected $name;
34
35
    /** @var string $type */
36
    protected $type;
37
38
    /** @var string $source */
39
    protected $source;
40
41
    /** @var integer channelSetId */
42
    protected $channelSetId;
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function toArray($object = null)
48
    {
49
        return $object ? get_object_vars($object) : get_object_vars($this);
50
    }
51
}
52