Test Setup Failed
Pull Request — dev (#310)
by Alies
03:54
created

BePaidApiContext::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types = 1);
2
3
namespace Diglabby\Doika\Services\PaymentGateways;
4
5
final class BePaidApiContext
6
{
7
    /** @var string */
8
    public $marketId;
9
10
    /** @var string */
11
    public $marketKey;
12
13
    /** @var bool */
14
    public $live;
15
16
    public function __construct(array $context)
17
    {
18
        $this->marketId = $context['marketId'];
19
        $this->marketKey = $context['marketKey'];
20
        $this->live = (bool) $context['live'];
21
    }
22
}
23