Still more definition in progress
This commit is contained in:
parent
46ee3fbfb1
commit
0f261718a5
@ -3,7 +3,7 @@
|
||||
## Recipe
|
||||
|
||||
### estimatedTime
|
||||
Array of different estimated times : cookTime, prepTime, performTime, totalTime, waitTime
|
||||
`Array` of different estimated times : cookTime, prepTime, performTime, totalTime, waitTime
|
||||
|
||||
cookTime
|
||||
- https://schema.org/Duration
|
||||
@ -19,64 +19,56 @@ totalTime
|
||||
- The total time required to perform instructions or a direction (including time to prepare the supplies)
|
||||
waitTime
|
||||
- https://schema.org/Duration
|
||||
- The total time needed to wait between steps, in ISO 8601 duration format.
|
||||
- waitTime is not in the schema... for now ! https://github.com/schemaorg/schemaorg/issues/2164
|
||||
- The total time needed to wait between steps, in ISO 8601 duration format
|
||||
- waitTime is not in the schema : https://github.com/schemaorg/schemaorg/issues/2164
|
||||
|
||||
### cookingMethod
|
||||
→ Maybe just not use it, or analyse the text to excerpt it
|
||||
The method of cooking, such as Frying, Steaming,...
|
||||
TODO
|
||||
Maybe have a checklist of methods ?
|
||||
Maybe just not use it
|
||||
|
||||
### recipeCategory
|
||||
`String (255)`
|
||||
The category of the recipe—for example, appetizer, entree, etc.
|
||||
|
||||
### recipeCuisine
|
||||
`String (255)`
|
||||
The cuisine of the recipe (for example, French or Ethiopian).
|
||||
|
||||
### recipeIngredient
|
||||
`String[]`
|
||||
List of ingredients in text format
|
||||
A single ingredient used in the recipe, e.g. sugar, flour or garlic.
|
||||
An array of ingredients in text format
|
||||
|
||||
### recipeInstructions
|
||||
`String[]`
|
||||
A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items.
|
||||
An array steps in text format.
|
||||
The number of the step should never be the text.
|
||||
|
||||
### recipeYield
|
||||
`String (50)`
|
||||
The quantity produced by the recipe (for example, number of people served, number of servings, etc).
|
||||
|
||||
### suitableForDiet
|
||||
`Array` of selected keywords (DiabeticDiet, GlutenFreeDiet, HalalDiet, HinduDiet, KosherDiet, LowCalorieDiet, LowFatDiet, LowLactoseDiet, LowSaltDiet, VeganDiet, VegetarianDiet)
|
||||
Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
|
||||
DiabeticDiet
|
||||
GlutenFreeDiet
|
||||
HalalDiet
|
||||
HinduDiet
|
||||
KosherDiet
|
||||
LowCalorieDiet
|
||||
LowFatDiet
|
||||
LowLactoseDiet
|
||||
LowSaltDiet
|
||||
VeganDiet
|
||||
VegetarianDiet
|
||||
TODO : Define how to show in the views
|
||||
|
||||
Array of... texts ?
|
||||
TODO : Decide the best way to store the list... maybe in the model
|
||||
|
||||
---
|
||||
|
||||
### estimatedCost ?
|
||||
### estimatedCost
|
||||
The estimated cost of the supply or supplies consumed when performing instructions.
|
||||
Not sure to use this property or not, I think people can guess the price.
|
||||
|
||||
### tool
|
||||
|
||||
### about ?
|
||||
Probablement la description... ou peut-être le titre
|
||||
|
||||
### aggregateRating ?
|
||||
`String[]`
|
||||
A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
|
||||
|
||||
### author
|
||||
|
||||
The author, a user
|
||||
TODO : define a user
|
||||
Person with name, url (profile) and image.
|
||||
|
||||
### comment
|
||||
A list of comments
|
||||
|
||||
@ -17,15 +17,10 @@ class Recipe
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=20, nullable=true)
|
||||
* @ORM\Column(type="json_array", nullable=true)
|
||||
*/
|
||||
private $estimatedTime;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=100, nullable=true)
|
||||
*/
|
||||
private $cookingMethod;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=25)
|
||||
*/
|
||||
@ -37,7 +32,7 @@ class Recipe
|
||||
private $recipeCuisine;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="json_array")
|
||||
* @ORM\Column(type="text")
|
||||
*/
|
||||
private $recipeIngredient;
|
||||
|
||||
@ -52,7 +47,7 @@ class Recipe
|
||||
private $recipeYield;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=255, nullable=true)
|
||||
* @ORM\Column(type="json_array", length=255, nullable=true)
|
||||
*/
|
||||
private $suitableForDiet;
|
||||
|
||||
@ -73,18 +68,6 @@ class Recipe
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCookingMethod(): ?string
|
||||
{
|
||||
return $this->cookingMethod;
|
||||
}
|
||||
|
||||
public function setCookingMethod(?string $cookingMethod): self
|
||||
{
|
||||
$this->cookingMethod = $cookingMethod;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRecipeCategory(): ?string
|
||||
{
|
||||
return $this->recipeCategory;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user