src/Entity/Producto/Menu.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Producto;
  3. use App\Entity\Catalogos\CategoriaProducto;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Menu
  7.  *
  8.  * @ORM\Table(name="producto.menu", indexes={@ORM\Index(name="IDX_41B4FF0615F555AA", columns={"id_categoria_producto"})})
  9.  * @ORM\Entity
  10.  */
  11. class Menu
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  19.      * @ORM\SequenceGenerator(sequenceName="producto.menu_id_seq", allocationSize=1, initialValue=1)
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="nombre", type="string", length=100, nullable=false)
  26.      */
  27.     private $nombre;
  28.     /**
  29.      * @var string|null
  30.      *
  31.      * @ORM\Column(name="descripcion", type="text", nullable=true)
  32.      */
  33.     private $descripcion;
  34.     /**
  35.      * @var string|null
  36.      *
  37.      * @ORM\Column(name="precio", type="decimal", precision=10, scale=4, nullable=true)
  38.      */
  39.     private $precio;
  40.     /**
  41.      * @var bool
  42.      *
  43.      * @ORM\Column(name="activo", type="boolean", nullable=false)
  44.      */
  45.     private $activo;
  46.     /**
  47.      * @var bool
  48.      *
  49.      * @ORM\Column(name="publicar", type="boolean", nullable=false)
  50.      */
  51.     private $publicar;
  52.     /**
  53.      * @var bool|null
  54.      *
  55.      * @ORM\Column(name="control_componente", type="boolean", nullable=true)
  56.      */
  57.     private $controlComponente;
  58.     /**
  59.      * @var bool|null
  60.      *
  61.      * @ORM\Column(name="acompanamiento", type="boolean", nullable=true)
  62.      */
  63.     private $acompanamiento;
  64.     /**
  65.      * @var string|null
  66.      *
  67.      * @ORM\Column(name="codigo", type="string", length=6, nullable=true)
  68.      */
  69.     private $codigo;
  70.     /**
  71.      * @var int
  72.      *
  73.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  74.      */
  75.     private $idUsuarioModificacion;
  76.     /**
  77.      * @var \DateTime
  78.      *
  79.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  80.      */
  81.     private $fechaModificacion;
  82.     /**
  83.      * @var string
  84.      *
  85.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  86.      */
  87.     private $ipModificacion;
  88.     /**
  89.      * @var \App\Entity\Catalogos\CategoriaProducto
  90.      *
  91.      * @ORM\ManyToOne(targetEntity="App\Entity\Catalogos\CategoriaProducto")
  92.      * @ORM\JoinColumns({
  93.      *   @ORM\JoinColumn(name="id_categoria_producto", referencedColumnName="id")
  94.      * })
  95.      */
  96.     private $idCategoriaProducto;
  97.     public function getId(): ?int
  98.     {
  99.         return $this->id;
  100.     }
  101.     public function getNombre(): ?string
  102.     {
  103.         return $this->nombre;
  104.     }
  105.     public function setNombre(string $nombre): self
  106.     {
  107.         $this->nombre $nombre;
  108.         return $this;
  109.     }
  110.     public function getDescripcion(): ?string
  111.     {
  112.         return $this->descripcion;
  113.     }
  114.     public function setDescripcion(?string $descripcion): self
  115.     {
  116.         $this->descripcion $descripcion;
  117.         return $this;
  118.     }
  119.     public function getPrecio(): ?string
  120.     {
  121.         return $this->precio;
  122.     }
  123.     public function setPrecio(?string $precio): self
  124.     {
  125.         $this->precio $precio;
  126.         return $this;
  127.     }
  128.     public function getActivo(): ?bool
  129.     {
  130.         return $this->activo;
  131.     }
  132.     public function setActivo(bool $activo): self
  133.     {
  134.         $this->activo $activo;
  135.         return $this;
  136.     }
  137.     public function getPublicar(): ?bool
  138.     {
  139.         return $this->publicar;
  140.     }
  141.     public function setPublicar(bool $publicar): self
  142.     {
  143.         $this->publicar $publicar;
  144.         return $this;
  145.     }
  146.     public function getControlComponente(): ?bool
  147.     {
  148.         return $this->controlComponente;
  149.     }
  150.     public function setControlComponente(?bool $controlComponente): self
  151.     {
  152.         $this->controlComponente $controlComponente;
  153.         return $this;
  154.     }
  155.     public function getAcompanamiento(): ?bool
  156.     {
  157.         return $this->acompanamiento;
  158.     }
  159.     public function setAcompanamiento(?bool $acompanamiento): self
  160.     {
  161.         $this->acompanamiento $acompanamiento;
  162.         return $this;
  163.     }
  164.     public function getCodigo(): ?string
  165.     {
  166.         return $this->codigo;
  167.     }
  168.     public function setCodigo(?string $codigo): self
  169.     {
  170.         $this->codigo $codigo;
  171.         return $this;
  172.     }
  173.     public function getIdUsuarioModificacion(): ?int
  174.     {
  175.         return $this->idUsuarioModificacion;
  176.     }
  177.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  178.     {
  179.         $this->idUsuarioModificacion $idUsuarioModificacion;
  180.         return $this;
  181.     }
  182.     public function getFechaModificacion(): ?\DateTimeInterface
  183.     {
  184.         return $this->fechaModificacion;
  185.     }
  186.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  187.     {
  188.         $this->fechaModificacion $fechaModificacion;
  189.         return $this;
  190.     }
  191.     public function getIpModificacion(): ?string
  192.     {
  193.         return $this->ipModificacion;
  194.     }
  195.     public function setIpModificacion(string $ipModificacion): self
  196.     {
  197.         $this->ipModificacion $ipModificacion;
  198.         return $this;
  199.     }
  200.     public function getIdCategoriaProducto(): ?CategoriaProducto
  201.     {
  202.         return $this->idCategoriaProducto;
  203.     }
  204.     public function setIdCategoriaProducto(?CategoriaProducto $idCategoriaProducto): self
  205.     {
  206.         $this->idCategoriaProducto $idCategoriaProducto;
  207.         return $this;
  208.     }
  209. }