firefly-iii/app/Services/Bunq/Object/ServerPublicKey.php

53 lines
988 B
PHP
Raw Normal View History

2017-08-18 10:08:30 -05:00
<?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
*/
2017-08-27 01:54:58 -05:00
public function __construct(array $response)
{
2017-08-18 10:08:30 -05:00
$this->publicKey = $response['server_public_key'];
}
/**
2017-08-27 01:54:58 -05:00
* @return string
2017-08-18 10:08:30 -05:00
*/
2017-08-27 01:54:58 -05:00
public function getPublicKey(): string
2017-08-18 10:08:30 -05:00
{
2017-08-27 01:54:58 -05:00
return $this->publicKey;
2017-08-18 10:08:30 -05:00
}
/**
2017-08-27 01:54:58 -05:00
* @param string $publicKey
2017-08-18 10:08:30 -05:00
*/
2017-08-27 01:54:58 -05:00
public function setPublicKey(string $publicKey)
2017-08-18 10:08:30 -05:00
{
2017-08-27 01:54:58 -05:00
$this->publicKey = $publicKey;
2017-08-18 10:08:30 -05:00
}
2017-08-30 23:47:18 -05:00
}