public function __construct($api_key = null, $private_key = null) { $this->config = Gengo_Config::getInstance(); if (!is_null($api_key)) { $this->config->api_key = $api_key; } if (!is_null($private_key)) { $this->config->private_key = $private_key; } $this->client = Gengo_Client::getInstance(); $this->response = null; }
public static function getInstance() { if (null === self::$instance) { self::$instance = new self(); } return self::$instance; }