Skip to content

Commit

Permalink
update directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Mar 24, 2021
1 parent 5696f96 commit 2659769
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/Coinbase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/**
* @author lin <[email protected]>
* */

namespace Lin\Coinbase;

class Coinbase
{
protected $key;
protected $secret;
protected $passphrase;
protected $host;

protected $options=[];

function __construct(string $key='',string $secret='',string $host='https://api.pro.coinbase.com'){
$this->key=$key;
$this->secret=$secret;
$this->host=$host;
}

/**
*
* */
private function init(){
return [
'key'=>$this->key,
'secret'=>$this->secret,
'passphrase'=>$this->passphrase,
'host'=>$this->host,
'options'=>$this->options,
];
}

/**
*
* */
function setOptions(array $options=[]){
$this->options=$options;
}
}

0 comments on commit 2659769

Please sign in to comment.