Completed
Pull Request — master (#85)
by thomas
03:18
created

MainnetSettings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setup() 0 7 1
1
<?php
2
3
namespace BitWasp\Bitcoin\Networking\Settings;
4
5
use BitWasp\Bitcoin\Networking\DnsSeeds\MainNetDnsSeeds;
6
7
class MainnetSettings extends NetworkSettings
8
{
9 24
    protected function setup()
10
    {
11 8
        $this
12 24
            ->setDefaultP2PPort(8333)
13 24
            ->setDnsSeeds(new MainNetDnsSeeds())
14
        ;
15 24
    }
16
}
17