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

easyCrypto::setRoundDecimal()   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 easyCrypto {
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 setIpnSecret (string $ipn_secret): self {
13
        $this->settings['ipn_secret'] = $ipn_secret;
14
        return $this;
15
    }
16
17
    public function setRoundDecimal (int $round_decimal): self {
18
        $this->settings['round_decimal'] = $round_decimal;
19
        return $this;
20
    }
21
22
    public function getSettings (): array {
23
        return $this->settings;
24
    }
25
}