ApiInfo.php 511 字节
<?php

namespace trader\struct;

class ApiInfo
{
    public string $key = '';
    public string $secret = '';
    public string $passphrase = '';

    public function __construct($key, $secret, $passphrase)
    {
        $this->key = $key;
        $this->secret = $secret;
        $this->passphrase = $passphrase;
    }
    public function toArray()
    {
        return [
            'key' => $this->key,
            'secret' => $this->secret,
            'passphrase' => $this->passphrase,
        ];
    }
}