Completed
Pull Request — master (#517)
by thomas
72:19
created

Address::getAddress()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace BitWasp\Bitcoin\Address;
4
5
use BitWasp\Buffertools\BufferInterface;
6
7
/**
8
 * Abstract Class Address
9
 * Used to store a hash, and a base58 encoded address
10
 */
11
abstract class Address implements AddressInterface
12
{
13
    /**
14
     * @var BufferInterface
15
     */
16
    protected $hash;
17
18
    /**
19
     * @param BufferInterface $hash
20
     */
21
    public function __construct(BufferInterface $hash)
22
    {
23
        $this->hash = $hash;
24
    }
25 92
26
    /**
27 92
     * @return BufferInterface
28 92
     */
29
    public function getHash()
30
    {
31
        return $this->hash;
32
    }
33
}
34