Пример #1
0
 /**
  * @param Ingredient $ingredient
  */
 public function __construct(Ingredient $ingredient)
 {
     $this->id = $ingredient->getId();
     $this->name = $ingredient->getName();
 }