Completed
Push — master ( 0c42c8...5a72fc )
by Mehmet
04:23
created

EnvironmentAbstract::getMerchantData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace MerchantSafeUnipay\SDK\Environment;
5
6
class EnvironmentAbstract
7
{
8
    protected $merchant;
9
    protected $merchantUser;
10
    protected $merchantPassword;
11
12
    public function __construct(string $merchant, string $merchantUser, string $merchantPassword)
13
    {
14
        $this->merchant = $merchant;
15
        $this->merchantUser = $merchantUser;
16
        $this->merchantPassword = $merchantPassword;
17
    }
18
19
    public function getUrl()
20
    {
21
        return static::$apiUrl;
22
    }
23
24
    public function getMerchantData()
25
    {
26
        return [
27
            'MERCHANT' => $this->merchant,
28
            'MERCHANTUSER' => $this->merchantUser,
29
            'MERCHANTPASSWORD' => $this->merchantPassword
30
        ];
31
    }
32
}
33