setShippingAddressEquality()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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
/**
17
 * This class represents List Payment Options Result Entity
18
 *
19
 * @method bool                             getAcceptFee()
20
 * @method bool                             getShippingAddressAllowed()
21
 * @method bool                             getShippingAddressEquality()
22
 *
23
 * @SuppressWarnings(PHPMD.LongVariable)
24
 */
25
class ListPaymentOptionsResultEntity extends AbstractPaymentOptionEntity
26
{
27
    /** @var bool $acceptFee */
28
    protected $acceptFee;
29
30
    /** @var bool $shippingAddressAllowed */
31
    protected $shippingAddressAllowed;
32
33
    /** @var bool $shippingAddressEquality */
34
    protected $shippingAddressEquality;
35
36
    /**
37
     * Sets Accept Fee
38
     *
39
     * @param bool $acceptFee
40
     */
41
    public function setAcceptFee($acceptFee)
42
    {
43
        $this->acceptFee = filter_var($acceptFee, FILTER_VALIDATE_BOOLEAN);
44
    }
45
46
    /**
47
     * Sets shipping address allowed
48
     *
49
     * @param bool $shippingAddressAllowed
50
     */
51
    public function setShippingAddressAllowed($shippingAddressAllowed)
52
    {
53
        $this->shippingAddressAllowed = filter_var($shippingAddressAllowed, FILTER_VALIDATE_BOOLEAN);
54
    }
55
56
    /**
57
     * Sets shipping address equality
58
     *
59
     * @param bool $shippingAddressEquality
60
     */
61
    public function setShippingAddressEquality($shippingAddressEquality)
62
    {
63
        $this->shippingAddressEquality = filter_var($shippingAddressEquality, FILTER_VALIDATE_BOOLEAN);
64
    }
65
}
66