times_caller.php 666 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace refill;
  3. class times_caller
  4. {
  5. private $mMchid;
  6. private $mSpec;
  7. private $mCardType;
  8. private $mReginNo;
  9. private $mCaller;
  10. public function __construct($mchid,$spec,$card_type,$regin_no,$caller)
  11. {
  12. $this->mMchid = $mchid;
  13. $this->mSpec = $spec;
  14. $this->mCardType = $card_type;
  15. $this->mReginNo = $regin_no;
  16. $this->mCaller = $caller;
  17. }
  18. public function __destruct()
  19. {
  20. $this->mCaller = null;
  21. }
  22. public function calc_times($quality)
  23. {
  24. return $this->mCaller->channeles($this->mMchid, $this->mSpec, $this->mCardType, $quality, $this->mReginNo);
  25. }
  26. }