src/Entity/Preparacion.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PreparacionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use DateTime;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PreparacionRepository::class)
  8.  * @ORM\HasLifecycleCallbacks
  9.  */
  10. class Preparacion
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\OneToOne(targetEntity=Agenda::class, inversedBy="preparacion", cascade={"persist", "remove"})
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $agenda;
  23.     /**
  24.      * @ORM\Column(type="string", length=100, nullable=true)
  25.      */
  26.     private $grupo_sanquineo;
  27.     /**
  28.      * @ORM\Column(type="string", length=100, nullable=true)
  29.      */
  30.     private $presion;
  31.     /**
  32.      * @ORM\Column(type="string", length=100, nullable=true)
  33.      */
  34.     private $pulso;
  35.     /**
  36.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  37.      */
  38.     private $temperatura;
  39.     /**
  40.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  41.      */
  42.     private $estatura;
  43.     /**
  44.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  45.      */
  46.     private $peso;
  47.     /**
  48.      * @ORM\Column(type="smallint")
  49.      */
  50.     private $estado;
  51.     /**
  52.      * @ORM\Column(type="string", length=50)
  53.      */
  54.     private $ip_crea;
  55.     /**
  56.      * @ORM\Column(type="string", length=50)
  57.      */
  58.     private $ip_modifica;
  59.     /**
  60.      * @ORM\Column(type="integer")
  61.      */
  62.     private $user_crea;
  63.     /**
  64.      * @ORM\Column(type="integer")
  65.      */
  66.     private $user_modifica;
  67.     /**
  68.      * @ORM\Column(type="datetime")
  69.      */
  70.     private $created_at;
  71.     /**
  72.      * @ORM\Column(type="datetime")
  73.      */
  74.     private $updated_at;
  75.     /**
  76.      * @ORM\Column(type="string", length=255, nullable=true)
  77.      */
  78.     private $observacion;
  79.     /**
  80.      * @ORM\Column(type="decimal", precision=10, scale=2)
  81.      */
  82.     private $frecuencia_respiratoria;
  83.     /**
  84.      * @ORM\Column(type="decimal", precision=10, scale=2)
  85.      */
  86.     private $saturacion_de_oxigeno;
  87.     /**
  88.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  89.      */
  90.     private $perimetro_cefalico;
  91.     /**
  92.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  93.      */
  94.     private $perimetro_toraxico;
  95.     /**
  96.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  97.      */
  98.     private $cambio_de_peso;
  99.     public function getId(): ?int
  100.     {
  101.         return $this->id;
  102.     }
  103.     public function getAgenda(): ?Agenda
  104.     {
  105.         return $this->agenda;
  106.     }
  107.     public function setAgenda(Agenda $agenda): self
  108.     {
  109.         $this->agenda $agenda;
  110.         return $this;
  111.     }
  112.     public function getGrupoSanquineo(): ?string
  113.     {
  114.         return $this->grupo_sanquineo;
  115.     }
  116.     public function setGrupoSanquineo(?string $grupo_sanquineo): self
  117.     {
  118.         $this->grupo_sanquineo $grupo_sanquineo;
  119.         return $this;
  120.     }
  121.     public function getPresion(): ?string
  122.     {
  123.         return $this->presion;
  124.     }
  125.     public function setPresion(?string $presion): self
  126.     {
  127.         $this->presion $presion;
  128.         return $this;
  129.     }
  130.     public function getPulso(): ?string
  131.     {
  132.         return $this->pulso;
  133.     }
  134.     public function setPulso(?string $pulso): self
  135.     {
  136.         $this->pulso $pulso;
  137.         return $this;
  138.     }
  139.     public function getTemperatura(): ?string
  140.     {
  141.         return $this->temperatura;
  142.     }
  143.     public function setTemperatura(?string $temperatura): self
  144.     {
  145.         $this->temperatura $temperatura;
  146.         return $this;
  147.     }
  148.     public function getEstatura(): ?string
  149.     {
  150.         return $this->estatura;
  151.     }
  152.     public function setEstatura(?string $estatura): self
  153.     {
  154.         $this->estatura $estatura;
  155.         return $this;
  156.     }
  157.     public function getPeso(): ?string
  158.     {
  159.         return $this->peso;
  160.     }
  161.     public function setPeso(?string $peso): self
  162.     {
  163.         $this->peso $peso;
  164.         return $this;
  165.     }
  166.     public function getEstado(): ?int
  167.     {
  168.         return $this->estado;
  169.     }
  170.     public function setEstado(int $estado): self
  171.     {
  172.         $this->estado $estado;
  173.         return $this;
  174.     }
  175.     public function getIpCrea(): ?string
  176.     {
  177.         return $this->ip_crea;
  178.     }
  179.     public function setIpCrea(string $ip_crea): self
  180.     {
  181.         $this->ip_crea $ip_crea;
  182.         return $this;
  183.     }
  184.     public function getIpModifica(): ?string
  185.     {
  186.         return $this->ip_modifica;
  187.     }
  188.     public function setIpModifica(string $ip_modifica): self
  189.     {
  190.         $this->ip_modifica $ip_modifica;
  191.         return $this;
  192.     }
  193.     public function getUserCrea(): ?int
  194.     {
  195.         return $this->user_crea;
  196.     }
  197.     public function setUserCrea(int $user_crea): self
  198.     {
  199.         $this->user_crea $user_crea;
  200.         return $this;
  201.     }
  202.     public function getUserModifica(): ?int
  203.     {
  204.         return $this->user_modifica;
  205.     }
  206.     public function setUserModifica(int $user_modifica): self
  207.     {
  208.         $this->user_modifica $user_modifica;
  209.         return $this;
  210.     }
  211.     public function getCreatedAt(): ?\DateTimeInterface
  212.     {
  213.         return $this->created_at;
  214.     }
  215.     public function setCreatedAt(\DateTimeInterface $created_at): self
  216.     {
  217.         $this->created_at $created_at;
  218.         return $this;
  219.     }
  220.     public function getUpdatedAt(): ?\DateTimeInterface
  221.     {
  222.         return $this->updated_at;
  223.     }
  224.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  225.     {
  226.         $this->updated_at $updated_at;
  227.         return $this;
  228.     }
  229.     /**
  230.      * @ORM\PrePersist
  231.      * @ORM\PreUpdate
  232.      */
  233.     public function updatedTimestamps(): void
  234.     {
  235.         $dateTimeNow = new DateTime('now');
  236.         $this->setUpdatedAt($dateTimeNow);
  237.         if ($this->getCreatedAt() === null) {
  238.             $this->setCreatedAt($dateTimeNow);
  239.         }
  240.     }
  241.     public function getObservacion(): ?string
  242.     {
  243.         return $this->observacion;
  244.     }
  245.     public function setObservacion(?string $observacion): self
  246.     {
  247.         $this->observacion $observacion;
  248.         return $this;
  249.     }
  250.     public function getFrecuenciaRespiratoria(): ?string
  251.     {
  252.         return $this->frecuencia_respiratoria;
  253.     }
  254.     public function setFrecuenciaRespiratoria(string $frecuencia_respiratoria): self
  255.     {
  256.         $this->frecuencia_respiratoria $frecuencia_respiratoria;
  257.         return $this;
  258.     }
  259.     public function getSaturacionDeOxigeno(): ?string
  260.     {
  261.         return $this->saturacion_de_oxigeno;
  262.     }
  263.     public function setSaturacionDeOxigeno(string $saturacion_de_oxigeno): self
  264.     {
  265.         $this->saturacion_de_oxigeno $saturacion_de_oxigeno;
  266.         return $this;
  267.     }
  268.     public function getPerimetroCefalico(): ?string
  269.     {
  270.         return $this->perimetro_cefalico;
  271.     }
  272.     public function setPerimetroCefalico(?string $perimetro_cefalico): self
  273.     {
  274.         $this->perimetro_cefalico $perimetro_cefalico;
  275.         return $this;
  276.     }
  277.     public function getPerimetroToraxico(): ?string
  278.     {
  279.         return $this->perimetro_toraxico;
  280.     }
  281.     public function setPerimetroToraxico(?string $perimetro_toraxico): self
  282.     {
  283.         $this->perimetro_toraxico $perimetro_toraxico;
  284.         return $this;
  285.     }
  286.     public function getCambioDePeso(): ?string
  287.     {
  288.         return $this->cambio_de_peso;
  289.     }
  290.     public function setCambioDePeso(?string $cambio_de_peso): self
  291.     {
  292.         $this->cambio_de_peso $cambio_de_peso;
  293.         return $this;
  294.     }
  295.    
  296. }