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