src/Entity/DocContract.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\MDS\VenuesBundle\Entity\Reservation;
  4. use App\Repository\DocContractRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DocContractRepository::class)
  8.  */
  9. class DocContract
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="text", nullable=true)
  19.      */
  20.     private $contractualDocument;
  21.     /**
  22.      * Reemplazamos el integer $modelId por la relación con la entidad.
  23.      *
  24.      * @ORM\ManyToOne(targetEntity=DocContractModel::class)
  25.      * @ORM\JoinColumn(name="model_id", referencedColumnName="id", nullable=true)
  26.      */
  27.     private ?DocContractModel $model null;
  28.     /**
  29.      * @var \DateTime
  30.      *
  31.      * @ORM\Column(name="created_at", type="datetime", nullable=true)
  32.      */
  33.     private $createdAt;
  34.     /**
  35.      * @var int
  36.      *
  37.      * @ORM\Column(name="created_id", type="integer", nullable=true)
  38.      */
  39.     private $createdId;
  40.     /**
  41.      * @var \DateTime
  42.      *
  43.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  44.      */
  45.     private $updatedAt;
  46.     /**
  47.      * @var int
  48.      *
  49.      * @ORM\Column(name="updated_id", type="integer", nullable=true)
  50.      */
  51.     private $updatedId;
  52.     /**
  53.      * @var \DateTime
  54.      *
  55.      * @ORM\Column(name="date_at", type="datetime", nullable=true)
  56.      * Fecha del contrato
  57.      */
  58.     private $dateAt;
  59.     /**
  60.      * @ORM\Column(name="booking_data", type="text", nullable=true)
  61.      * Especificaciones para la reserva, depósito y monto
  62.      */
  63.     private $bookingData;
  64.     /**
  65.      * @ORM\Column(name="client_proxy", type="string", length=255, nullable=true)
  66.      * Representante del cliente de cara al contrato.
  67.      */
  68.     private $clientProxy;
  69.     /**
  70.      * @ORM\Column(name="client_job", type="string", length=255, nullable=true)
  71.      * Línea de negocio del cliente
  72.      */
  73.     private $clientJob;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=Reservation::class, inversedBy="docContracts")
  76.      * @ORM\JoinColumn(nullable=false)
  77.      */
  78.     private $reservation;
  79.     public function getId(): ?int
  80.     {
  81.         return $this->id;
  82.     }
  83.     public function getContractualDocument(): ?string
  84.     {
  85.         return $this->contractualDocument;
  86.     }
  87.     public function setContractualDocument(string $contractualDocument): self
  88.     {
  89.         $this->contractualDocument $contractualDocument;
  90.         return $this;
  91.     }
  92.     public function getModel(): ?DocContractModel
  93.     {
  94.         return $this->model;
  95.     }
  96.     public function setModel(?DocContractModel $model): self
  97.     {
  98.         $this->model $model;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Set createdAt
  103.      *
  104.      * @param \Datetime $createdAt
  105.      *
  106.      * @return DocContract
  107.      */
  108.     public function setCreatedAt(\Datetime $createdAt)
  109.     {
  110.         $this->createdAt $createdAt;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get createdAt
  115.      *
  116.      * @return \Datetime
  117.      */
  118.     public function getCreatedAt()
  119.     {
  120.         return $this->createdAt;
  121.     }
  122.     /**
  123.      * Set createdId
  124.      *
  125.      * @param integer $createdId
  126.      *
  127.      * @return DocContract
  128.      */
  129.     public function setCreatedId($createdId)
  130.     {
  131.         $this->createdId $createdId;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get createdId
  136.      *
  137.      * @return int
  138.      */
  139.     public function getCreatedId()
  140.     {
  141.         return $this->createdId;
  142.     }
  143.     /**
  144.      * Set updatedAt
  145.      *
  146.      * @param \Datetime $updatedAt
  147.      *
  148.      * @return DocContract
  149.      */
  150.     public function setUpdatedAt(\Datetime $updatedAt)
  151.     {
  152.         $this->updatedAt $updatedAt;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get updatedAt
  157.      *
  158.      * @return \Datetime
  159.      */
  160.     public function getUpdatedAt()
  161.     {
  162.         return $this->updatedAt;
  163.     }
  164.     /**
  165.      * Set updatedId
  166.      *
  167.      * @param integer $updatedId
  168.      *
  169.      * @return DocContract
  170.      */
  171.     public function setUpdatedId($updatedId)
  172.     {
  173.         $this->updatedId $updatedId;
  174.         return $this;
  175.     }
  176.     /**
  177.      * Get updatedId
  178.      *
  179.      * @return int
  180.      */
  181.     public function getUpdatedId()
  182.     {
  183.         return $this->updatedId;
  184.     }
  185.     /**
  186.      * Set dateAt
  187.      *
  188.      * @param \Datetime $dateAt
  189.      *
  190.      * @return DocContract
  191.      */
  192.     public function setDateAt(\Datetime $dateAt)
  193.     {
  194.         $this->dateAt $dateAt;
  195.         return $this;
  196.     }
  197.     /**
  198.      * Get dateAt
  199.      *
  200.      * @return \Datetime
  201.      */
  202.     public function getDateAt()
  203.     {
  204.         return $this->dateAt;
  205.     }
  206.     /**
  207.      * Set bookingData
  208.      *
  209.      * @param string $bookingData
  210.      *
  211.      * @return DocContract
  212.      */
  213.     public function setBookingData($bookingData)
  214.     {
  215.         $this->bookingData $bookingData;
  216.         return $this;
  217.     }
  218.     /**
  219.      * Get bookingData
  220.      *
  221.      * @return string
  222.      */
  223.     public function getBookingData()
  224.     {
  225.         return $this->bookingData;
  226.     }
  227.     public function getClientProxy(): ?string
  228.     {
  229.         return $this->clientProxy;
  230.     }
  231.     public function setClientProxy(string $clientProxy): self
  232.     {
  233.         $this->clientProxy $clientProxy;
  234.         return $this;
  235.     }
  236.     public function getClientJob(): ?string
  237.     {
  238.         return $this->clientJob;
  239.     }
  240.     public function setClientJob(string $clientJob): self
  241.     {
  242.         $this->clientJob $clientJob;
  243.         return $this;
  244.     }
  245.     public function getReservation(): ?Reservation
  246.     {
  247.         return $this->reservation;
  248.     }
  249.     public function setReservation(Reservation $reservation): self
  250.     {
  251.         $this->reservation $reservation;
  252.         return $this;
  253.     }
  254. }