<?php
namespace App\Entity\Recipe;
use App\Repository\Recipe\IngredientMeasureUnitRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=IngredientMeasureUnitRepository::class)
*/
class IngredientMeasureUnit
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({
* "Recipe:io",
* })
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Groups({
* "Recipe:io",
* })
*/
private $label;
public function getId(): ?int
{
return $this->id;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
}