function Recipe() { parent::__construct(); $this->instructions->tag->tagtype = 'span'; $this->ingredients->tag->tagtype = 'span'; $this->setinstructionsAttributes('instructions'); $this->setingredientsAttributes('ingredients'); }
public function __construct() { parent::__construct(); $keys = ['cookTime', 'cookingMethod', 'prepTime', 'recipeInstructions', 'recipeYield', 'totalTime', 'recipeCategories', 'recipeCuisines', 'recipeIngredients']; foreach ($keys as $key) { $this->properties[$key] = null; } }