Completed
Pull Request — master (#14)
by Tobias
05:50
created

BitcoinNetworkConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPaymentMimeType() 0 4 1
A getPaymentRequestMimeType() 0 4 1
A getPaymentAckMimeType() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Bip70\Client\NetworkConfig;
6
7
class BitcoinNetworkConfig implements NetworkConfigInterface
8
{
9 1
    public function getPaymentMimeType()
10
    {
11 1
        return "application/bitcoin-payment";
12
    }
13
14 7
    public function getPaymentRequestMimeType()
15
    {
16 7
        return "application/bitcoin-paymentrequest";
17
    }
18
19 1
    public function getPaymentAckMimeType()
20
    {
21 1
        return "application/bitcoin-paymentack";
22
    }
23
}
24