Behavioral.Iterator.Item.getPrice()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 2
rs 10
1
/*
2
 * @author  : Jagepard <[email protected]>
3
 * @license https://mit-license.org/ MIT
4
 */
5
6
package Behavioral.Iterator;
7
8
public class Item implements ItemInterface{
9
10
    private final String name;
11
    private final int    price;
12
    private final String description;
13
14
    public Item(String name, int price, String description) {
15
        this.name        = name;
16
        this.price       = price;
17
        this.description = description;
18
    }
19
20
    public String getName() {
21
        return name;
22
    }
23
24
    public int getPrice() {
25
        return price;
26
    }
27
28
    public String getDescription() {
29
        return description;
30
    }
31
}
32