src/Entity/Fielpet/View/MedicamentosView.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * MedicamentosView
  7. *
  8. * @ORM\Table(name="medicamentos_view")
  9. * @ORM\Entity
  10. * @ORM\Entity(repositoryClass="App\Repository\Fielpet\View\MedicamentosViewRepository")
  11. */
  12. class MedicamentosView
  13. {
  14. /**
  15. * @var int
  16. *
  17. * @ORM\Column(name="id", type="integer", nullable=false)
  18. * @ORM\Id
  19. */
  20. private $id;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(name="nombre_comercial", type="string", length=255, nullable=false)
  25. */
  26. private $nombreComercial;
  27. /**
  28. * @var string
  29. *
  30. * @ORM\Column(name="drogas", type="string", length=1000, nullable=false)
  31. */
  32. private $drogas;
  33. /**
  34. * @var string
  35. *
  36. * @ORM\Column(name="laboratorio", type="string", length=255, nullable=false)
  37. */
  38. private $laboratorio;
  39. /**
  40. * @var string
  41. *
  42. * @ORM\Column(name="tipo_accion", type="string", length=1000, nullable=false)
  43. */
  44. private $tipoAccion;
  45. /**
  46. * @var string
  47. *
  48. * @ORM\Column(name="presentacion", type="string", length=255, nullable=false)
  49. */
  50. private $presentacion;
  51. /**
  52. * @var string|null
  53. *
  54. * @ORM\Column(name="unidad_dosis", type="string", length=255, nullable=true)
  55. */
  56. private $unidadDosis;
  57. /**
  58. * @var string|null
  59. *
  60. * @ORM\Column(name="unidad_tiempo", type="string", length=255, nullable=true)
  61. */
  62. private $unidadTiempo;
  63. /**
  64. * @var string|null
  65. *
  66. * @ORM\Column(name="via", type="string", length=255, nullable=true)
  67. */
  68. private $via;
  69. /**
  70. * @var bool|null
  71. *
  72. * @ORM\Column(name="permitido_consulta", type="boolean", nullable=true)
  73. */
  74. private $permitidoConsulta = false;
  75. /**
  76. * @var \DateTime
  77. *
  78. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  79. */
  80. private $createdAt;
  81. /**
  82. * @var \DateTime
  83. *
  84. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  85. */
  86. private $updatedAt;
  87. /**
  88. * @ORM\OneToMany(targetEntity="VetformMedicamentosView", mappedBy="medicamentosId", cascade={"persist"})
  89. **/
  90. private $medicamentos;
  91. public function __construct()
  92. {
  93. $this->medicamentos = new \Doctrine\Common\Collections\ArrayCollection();
  94. }
  95. /**
  96. * @return int
  97. */
  98. public function getId(): int
  99. {
  100. return $this->id;
  101. }
  102. /**
  103. * @param int $id
  104. */
  105. public function setId(int $id): void
  106. {
  107. $this->id = $id;
  108. }
  109. /**
  110. * @return string
  111. */
  112. public function getNombreComercial(): string
  113. {
  114. return $this->nombreComercial;
  115. }
  116. /**
  117. * @param string $nombreComercial
  118. */
  119. public function setNombreComercial(string $nombreComercial): void
  120. {
  121. $this->nombreComercial = $nombreComercial;
  122. }
  123. /**
  124. * @return string
  125. */
  126. public function getDrogas(): string
  127. {
  128. return $this->drogas;
  129. }
  130. /**
  131. * @param string $drogas
  132. */
  133. public function setDrogas(string $drogas): void
  134. {
  135. $this->drogas = $drogas;
  136. }
  137. /**
  138. * @return string
  139. */
  140. public function getLaboratorio(): string
  141. {
  142. return $this->laboratorio;
  143. }
  144. /**
  145. * @param string $laboratorio
  146. */
  147. public function setLaboratorio(string $laboratorio): void
  148. {
  149. $this->laboratorio = $laboratorio;
  150. }
  151. /**
  152. * @return string
  153. */
  154. public function getTipoAccion(): string
  155. {
  156. return $this->tipoAccion;
  157. }
  158. /**
  159. * @param string $tipoAccion
  160. */
  161. public function setTipoAccion(string $tipoAccion): void
  162. {
  163. $this->tipoAccion = $tipoAccion;
  164. }
  165. /**
  166. * @return string
  167. */
  168. public function getPresentacion(): string
  169. {
  170. return $this->presentacion;
  171. }
  172. /**
  173. * @param string $presentacion
  174. */
  175. public function setPresentacion(string $presentacion): void
  176. {
  177. $this->presentacion = $presentacion;
  178. }
  179. /**
  180. * @return string|null
  181. */
  182. public function getUnidadDosis(): ?string
  183. {
  184. return $this->unidadDosis;
  185. }
  186. /**
  187. * @param string|null $unidadDosis
  188. */
  189. public function setUnidadDosis(?string $unidadDosis): void
  190. {
  191. $this->unidadDosis = $unidadDosis;
  192. }
  193. /**
  194. * @return string|null
  195. */
  196. public function getUnidadTiempo(): ?string
  197. {
  198. return $this->unidadTiempo;
  199. }
  200. /**
  201. * @param string|null $unidadTiempo
  202. */
  203. public function setUnidadTiempo(?string $unidadTiempo): void
  204. {
  205. $this->unidadTiempo = $unidadTiempo;
  206. }
  207. /**
  208. * @return string|null
  209. */
  210. public function getVia(): ?string
  211. {
  212. return $this->via;
  213. }
  214. /**
  215. * @param string|null $via
  216. */
  217. public function setVia(?string $via): void
  218. {
  219. $this->via = $via;
  220. }
  221. /**
  222. * @return bool|null
  223. */
  224. public function getPermitidoConsulta(): ?bool
  225. {
  226. return $this->permitidoConsulta;
  227. }
  228. /**
  229. * @param bool|null $permitidoConsulta
  230. */
  231. public function setPermitidoConsulta(?bool $permitidoConsulta): void
  232. {
  233. $this->permitidoConsulta = $permitidoConsulta;
  234. }
  235. /**
  236. * @return \DateTime
  237. */
  238. public function getCreatedAt(): \DateTime
  239. {
  240. return $this->createdAt;
  241. }
  242. /**
  243. * @param \DateTime $createdAt
  244. */
  245. public function setCreatedAt(\DateTime $createdAt): void
  246. {
  247. $this->createdAt = $createdAt;
  248. }
  249. /**
  250. * @return \DateTime
  251. */
  252. public function getUpdatedAt(): \DateTime
  253. {
  254. return $this->updatedAt;
  255. }
  256. /**
  257. * @param \DateTime $updatedAt
  258. */
  259. public function setUpdatedAt(\DateTime $updatedAt): void
  260. {
  261. $this->updatedAt = $updatedAt;
  262. }
  263. /**
  264. * @return \Doctrine\Common\Collections\Collection
  265. */
  266. public function getMedicamentos(): \Doctrine\Common\Collections\Collection
  267. {
  268. return $this->medicamentos;
  269. }
  270. /**
  271. * @param \Doctrine\Common\Collections\Collection $medicamentos
  272. */
  273. public function setMedicamentos(\Doctrine\Common\Collections\Collection $medicamentos): void
  274. {
  275. $this->medicamentos = $medicamentos;
  276. }
  277. }