Blockchain   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A bitcoin() 0 4 1
1
<?php
2
namespace HopekellDev\Tatum\Helpers;
3
4
use HopekellDev\Tatum\Helpers\Blockchains\Bitcoin;
5
6
class Blockchain
7
{
8
    protected $apiKey;
9
    protected $accountID;
10
    protected $baseUrl;
11
12
    /**
13
     * Construct
14
     */
15
    function __construct(String $apiKey, String $accountID, String $baseUrl)
16
    {
17
        $this->apiKey = $apiKey;
18
        $this->accountID = $accountID;
19
        $this->baseUrl = $baseUrl;
20
    }
21
22
    /**
23
     * Handle Bitcoin Blockchan
24
     *
25
     * @return Bitcoin
26
     */
27
    public function bitcoin()
28
    {
29
        $bitcoin = new Bitcoin($this->apiKey, $this->accountID, $this->baseUrl);
30
        return $bitcoin;
31
    }
32
33
}