Last active
January 30, 2018 16:25
-
-
Save biloshkurskyi-ss/b43f68c2583f80c1610748da23b85175 to your computer and use it in GitHub Desktop.
SWIFT.Solid.SingleResponsobility.Good
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol OrderType { | |
var products: [ProductType] { get } | |
func calculateTotalSum() | |
func getItems() | |
func add(_ product: ProductType) | |
func remove(_ product: ProductType) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment