src/Entity/Recipe/IngredientMeasureUnit.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Recipe;
  3. use App\Repository\Recipe\IngredientMeasureUnitRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=IngredientMeasureUnitRepository::class)
  8.  */
  9. class IngredientMeasureUnit
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({
  16.      *     "Recipe:io",
  17.      * })
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      * @Groups({
  23.      *     "Recipe:io",
  24.      * })
  25.      */
  26.     private $label;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getLabel(): ?string
  32.     {
  33.         return $this->label;
  34.     }
  35.     public function setLabel(string $label): self
  36.     {
  37.         $this->label $label;
  38.         return $this;
  39.     }
  40. }