42 lines
765 B
Java
42 lines
765 B
Java
package dev.model;
|
|
|
|
public class MenuItem {
|
|
|
|
private int id;
|
|
|
|
private String name;
|
|
|
|
private String description;
|
|
|
|
private double price;
|
|
|
|
private String category;
|
|
|
|
public MenuItem(int id, String name, String description, double price, String category) {
|
|
this.id = id;
|
|
this.name = name;
|
|
this.description = description;
|
|
this.price = price;
|
|
this.category = category;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return this.description;
|
|
}
|
|
|
|
public int getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public double getPrice() {
|
|
return this.price;
|
|
}
|
|
|
|
public String getCategory() {
|
|
return this.category;
|
|
}
|
|
} |