src/Entity/Statscomida.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StatscomidaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=StatscomidaRepository::class)
  7.  */
  8. class Statscomida
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Comida::class, inversedBy="statscomidas")
  18.      */
  19.     private $comida;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=TipoComida::class, inversedBy="statscomidas")
  22.      */
  23.     private $tipocomida;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Mesas::class, inversedBy="statscomidas")
  26.      */
  27.     private $mesa;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private $fecha;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Productostienda::class, inversedBy="statscomidas")
  34.      */
  35.     private $tienda;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getComida(): ?comida
  41.     {
  42.         return $this->comida;
  43.     }
  44.     public function setComida(?comida $comida): self
  45.     {
  46.         $this->comida $comida;
  47.         return $this;
  48.     }
  49.     public function getTipocomida(): ?TipoComida
  50.     {
  51.         return $this->tipocomida;
  52.     }
  53.     public function setTipocomida(?TipoComida $tipocomida): self
  54.     {
  55.         $this->tipocomida $tipocomida;
  56.         return $this;
  57.     }
  58.     public function getMesa(): ?mesas
  59.     {
  60.         return $this->mesa;
  61.     }
  62.     public function setMesa(?mesas $mesa): self
  63.     {
  64.         $this->mesa $mesa;
  65.         return $this;
  66.     }
  67.     public function getFecha(): ?\DateTimeInterface
  68.     {
  69.         return $this->fecha;
  70.     }
  71.     public function setFecha(\DateTimeInterface $fecha): self
  72.     {
  73.         $this->fecha $fecha;
  74.         return $this;
  75.     }
  76.     public function getTienda(): ?Productostienda
  77.     {
  78.         return $this->tienda;
  79.     }
  80.     public function setTienda(?Productostienda $tienda): self
  81.     {
  82.         $this->tienda $tienda;
  83.         return $this;
  84.     }
  85. }