public function addCapture($hash_in) { $hash_out = Transactions::createCaptureHash($hash_in); $this->addTransaction($hash_out, $hash_in, 'capture'); $this->counts_and_amounts['capture']['count'] += 1; $this->counts_and_amounts['capture']['amount'] += $hash_out['amount']; }