public function removeFailedTransaction($error) { return $this->setFailedTransactions(array_diff($this->getFailedTransactions(), array($error))); }