Quick actions

cmd+k|ctrl+k

Navigation

Languages

DIP Implementation

Snippet info

Language

Swift

Visibility

public

Author

alfian

Created

2020-06-03T07:21:26Z

Updated

2020-06-03T07:21:26Z

class PaymentService {
 
    private let _database: Database
    
    init(database: Database) {
        _database = database
    }
 
    func paymentIsValid() {
       // Implementation code
    }
    
    func openDatabase() {
       // Implementation code
    }
    
    func addNewPayment() {
       // Implementation code
    }
    
    func removePaymentByID() {
       // Implementation code
    }
    
    func updatePaymentByID() {
       // Implementation code
    }
}
INFO