function __construct($key = null, $secret = null) { if ($key && $secret) { RiqConfig::setKey($key, $secret); } // Set key & secret $this->key = RiqConfig::$key; $this->secret = RiqConfig::$secret; }
/** * Constructor. * * @return void */ function __construct($key, $secret, array $listId = array()) { Resource\RiqConfig::setKey($key, $secret); $this->listId = $listId; }