Passed
Push — main ( f82312...487838 )
by Miaad
10:48 queued 13s
created

easyIdpay::setSandbox()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace BPT\settings;
4
class easyIdpay {
5
    private array $settings = [];
6
7
    public function setApiKey (string $api_key): self {
8
        $this->settings['api_key'] = $api_key;
9
        return $this;
10
    }
11
12
    public function setSandbox (string $sandbox): self {
13
        $this->settings['sandbox'] = $sandbox;
14
        return $this;
15
    }
16
17
    public function getSettings (): array {
18
        return $this->settings;
19
    }
20
}