/** * Create a new Entry and assign the required fields * * @param string $tranCode use one of the class constants DEBIT_CHECKING|DEPOSIT_CHECKING * @param string $routing receivers routing number * @param string $account receivers account number * @param string $receiverId receivers id * @param string $receiverName receivers name * @param float $amount amount of transaction * @return Entry */ public static function create($tranCode, $routing, $account, $receiverId, $receiverName, $amount) { $instance = new Entry(); $instance->setTransactionCode($tranCode)->setRoutingNumber($routing)->setAccountNumber($account)->setReceiverId($receiverId)->setReceiverName($receiverName)->setAmount($amount); return $instance; }