Files
firefly-iii/app/Services/Bunq/Object/ServerPublicKey.php
James Cole 93068659e5 Bunq code.
2017-08-18 17:08:30 +02:00

51 lines
983 B
PHP

<?php
/**
* ServerPublicKey.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
declare(strict_types=1);
namespace FireflyIII\Services\Bunq\Object;
/**
* Class ServerPublicKey
*
* @package Bunq\Object
*/
class ServerPublicKey extends BunqObject
{
/** @var string */
private $publicKey = '';
/**
* ServerPublicKey constructor.
*
* @param array $response
*/
public function __construct(array $response) {
$this->publicKey = $response['server_public_key'];
}
/**
* @param string $publicKey
*/
public function setPublicKey(string $publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey(): string
{
return $this->publicKey;
}
}