/** * Recharger un buyer. * * @param int $amount * @param int $rty_id * @param String $trace * @return int $state */ public function reload($amount, $rty_id, $trace) { if (isset($this->Buyer)) { $trace .= " via SBUY"; return parent::reload($amount, $rty_id, $trace, $this->Buyer->getId()); } else { return 409; } }
/** * Recharger un buyer. * * @param int $amount * @param int $rty_id * @param String $trace * @return int $state */ public function reload($amount, $rty_id, $trace) { if ($this->isReloader() != 1) { return $this->isReloader(); } if (isset($this->Buyer)) { $trace .= " via PBUY"; return parent::reload($amount, $rty_id, $trace, $this->Seller->getId()); } else { return 409; } }