/** * @param Ingredient $ingredient */ public function __construct(Ingredient $ingredient) { $this->id = $ingredient->getId(); $this->name = $ingredient->getName(); }
/** * @param Ingredient $ingredient */ public function __construct(Ingredient $ingredient) { $this->id = $ingredient->getId(); $this->name = $ingredient->getName(); }