Passed
Push — master ( f8ce69...b14078 )
by payever
03:35
created

PaymentOptionVariantEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
1
<?php
2
/**
3
 * PHP version 5.4 and 7
4
 *
5
 * @package   Payever\Payments
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\Payments\Http\MessageEntity;
12
13
use Payever\ExternalIntegration\Core\Base\MessageEntity;
14
15
/**
16
 * PHP version 5.4 and 7
17
 *
18
 * @package   Payever\Payments
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
 * @method string getVariantId()
25
 * @method null|string getName()
26
 * @method bool getAcceptFee()
27
 */
28
class PaymentOptionVariantEntity extends MessageEntity
29
{
30
    /** @var string - Variant UUID */
31
    protected $variantId;
32
33
    /** @var null|string - Variant name */
34
    protected $name;
35
36
    /** @var bool */
37
    protected $acceptFee;
38
39
    /**
40
     * @return string
41
     */
42
    public function getId()
43
    {
44
        return $this->variantId;
45
    }
46
}
47