<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Table(name="nutrients_recommended_quantity ")
* @ORM\Entity(repositoryClass="App\Repository\NutrientsRecommendedQuantityRepository")
*/
class NutrientsRecommendedQuantity
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @Groups("nutrient:read")
*/
private ?int $id = null;
/**
* @ORM\Column(name="nutrient", type="string", length=255)
* @Groups("nutrient:read")
*/
private ?string $nutrient = null;
/**
* @ORM\Column(type="decimal", precision=10, scale=2)
* @Groups("nutrient:read")
*/
private ?string $quantity = null;
public function getId(): ?int
{
return $this->id;
}
public function getNutrient(): ?string
{
return $this->nutrient;
}
public function setNutrient(string $nutrient): self
{
$this->nutrient = $nutrient;
return $this;
}
public function getQuantity(): ?string
{
return $this->quantity;
}
public function setQuantity(string $quantity): self
{
$this->quantity = $quantity;
return $this;
}
}