. */ declare(strict_types=1); namespace FireflyIII\Services\Bunq\Object; /** * Class ServerPublicKey. */ class ServerPublicKey extends BunqObject { /** @var string */ private $publicKey; /** * ServerPublicKey constructor. * * @param array $response */ public function __construct(array $response) { $this->publicKey = $response['server_public_key']; } /** * @return string */ public function getPublicKey(): string { return $this->publicKey; } /** * @param string $publicKey */ public function setPublicKey(string $publicKey) { $this->publicKey = $publicKey; } /** * @return array */ public function toArray(): array { return [ 'server_public_key' => $this->publicKey, ]; } }