public function getPreviousAccount($previousId)
    {
        $accountMapper = new AccountMapper(Database::get('money'));

        if ($previousId <= 0) {
            return $accountMapper->newDataInstance();
        }

        return $accountMapper->findById($previousId);
    }
public function getPreviousAccount($previousId)
    {
        $accountMapper = new AccountMapper(Database::get('money'));

        if ($previousId <= 0) {
            return $accountMapper->newDataInstance();
        }

        return $accountMapper->findById($previousId);
    }
public function getPreviousAccount ( $ previousId ) { $ accountMapper = new AccountMapper ( Database :: get ( 'money' ) ) ; if ( $ previousId <= 0 ) { return $ accountMapper -> newDataInstance ( ) ; } return $ accountMapper -> findById ( $ previousId ) ; }
Get previous account.

@param  int $previousId
@return Account
Get previous account .