public function removeTransaction($transaction) { return $this->setTransactions(array_diff($this->getTransactions(), array($transaction))); }