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

BePaidApiContext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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