You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
517 B
24 lines
517 B
import { Unity } from "./unity";
|
|
import { Ingredient } from "./ingredient.model";
|
|
import { QuantifiedIngredient } from "./quantified-ingredient.model";
|
|
|
|
export class QuantifiedIngredientGetter implements QuantifiedIngredient {
|
|
constructor(
|
|
public $quantity: number,
|
|
public $unit: Unity,
|
|
public $ingredient: Ingredient
|
|
) {}
|
|
|
|
get quantity(): number {
|
|
return this.$quantity;
|
|
}
|
|
|
|
get unit(): Unity {
|
|
return this.$unit;
|
|
}
|
|
|
|
get ingredient(): Ingredient {
|
|
return this.$ingredient;
|
|
}
|
|
}
|