src/Entity/NutrientsRecommendedQuantity.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6.  * @ORM\Table(name="nutrients_recommended_quantity ")
  7.  * @ORM\Entity(repositoryClass="App\Repository\NutrientsRecommendedQuantityRepository")
  8.  */
  9. class NutrientsRecommendedQuantity
  10. {
  11.     /**
  12.      * @ORM\Column(name="id", type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      * @Groups("nutrient:read")
  16.      */
  17.     private ?int $id null;
  18.     /**
  19.      * @ORM\Column(name="nutrient", type="string", length=255)
  20.      * @Groups("nutrient:read")
  21.      */
  22.     private ?string $nutrient null;
  23.     /**
  24.      * @ORM\Column(type="decimal", precision=10, scale=2)
  25.      * @Groups("nutrient:read")
  26.      */
  27.     private ?string $quantity null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getNutrient(): ?string
  33.     {
  34.         return $this->nutrient;
  35.     }
  36.     public function setNutrient(string $nutrient): self
  37.     {
  38.         $this->nutrient $nutrient;
  39.         return $this;
  40.     }
  41.     public function getQuantity(): ?string
  42.     {
  43.         return $this->quantity;
  44.     }
  45.     public function setQuantity(string $quantity): self
  46.     {
  47.         $this->quantity $quantity;
  48.         return $this;
  49.     }
  50. }