Callback.php 241 B

12345678910111213141516
  1. <?php
  2. namespace qiniu\services\blockchain\bsc;
  3. class Callback
  4. {
  5. public $result;
  6. function __invoke($error, $result)
  7. {
  8. //$this->error = $error;
  9. if ($error) throw $error;
  10. $this->result = $result;
  11. }
  12. }