Improving bunq import.

This commit is contained in:
James Cole
2017-08-27 08:54:58 +02:00
parent 1ecf3d04d9
commit 1319cb2e4e
16 changed files with 195 additions and 87 deletions

View File

@@ -27,16 +27,9 @@ class ServerPublicKey extends BunqObject
*
* @param array $response
*/
public function __construct(array $response) {
$this->publicKey = $response['server_public_key'];
}
/**
* @param string $publicKey
*/
public function setPublicKey(string $publicKey)
public function __construct(array $response)
{
$this->publicKey = $publicKey;
$this->publicKey = $response['server_public_key'];
}
/**
@@ -47,5 +40,13 @@ class ServerPublicKey extends BunqObject
return $this->publicKey;
}
/**
* @param string $publicKey
*/
public function setPublicKey(string $publicKey)
{
$this->publicKey = $publicKey;
}
}