mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
14 lines
320 B
Swift
14 lines
320 B
Swift
public class GildedRose {
|
|
var items:[Item]
|
|
|
|
public init(items:[Item]) {
|
|
self.items = items
|
|
}
|
|
|
|
public func updateQuality() {
|
|
let customFactoryObj = CustomisedItemFactory()
|
|
_ = items.map({customFactoryObj.getCustomisedItem(item: $0).updateCustomItemQuality()})
|
|
|
|
}
|
|
}
|