src/Entity/Idempiere/MProductdownload.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\MProductdownloadRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MProductdownloadRepository::class)
  7. * @ORM\Table(name="M_ProductDownload")
  8. */
  9. class MProductdownload
  10. {
  11. /**
  12. * @ORM\Column(type="integer")
  13. */
  14. private $ad_client_id;
  15. /**
  16. * @ORM\Column(type="integer")
  17. */
  18. private $ad_org_id;
  19. /**
  20. * @ORM\Column(type="datetime")
  21. */
  22. private $created;
  23. /**
  24. * @ORM\Column(type="integer")
  25. */
  26. private $createdby;
  27. /**
  28. * @ORM\Column(type="string", length=120)
  29. */
  30. private $downloadurl;
  31. /**
  32. * @ORM\Column(type="string", length=1)
  33. */
  34. private $isactive;
  35. /**
  36. * @ORM\Column(type="string", length=1)
  37. */
  38. private $iscatalog;
  39. /**
  40. * @ORM\Column(type="string", length=1)
  41. */
  42. private $iscover;
  43. /**
  44. * @ORM\Column(type="string", length=1)
  45. */
  46. private $isonline;
  47. /**
  48. * @ORM\ManyToOne(targetEntity=MProduct::class, inversedBy="m_productdownload")
  49. * @ORM\JoinColumn(referencedColumnName="m_product_id")
  50. */
  51. private $m_product;
  52. /**
  53. * @ORM\Column(type="integer")
  54. */
  55. private $m_product_id;
  56. /**
  57. * @ORM\Id
  58. * @ORM\Column(type="integer")
  59. */
  60. private $m_productdownload_id;
  61. /**
  62. * @ORM\Column(type="string", length=36)
  63. */
  64. private $m_productdownload_uu;
  65. /**
  66. * @ORM\Column(type="string", length=60)
  67. */
  68. private $name;
  69. /**
  70. * @ORM\Column(type="integer")
  71. */
  72. private $seqno;
  73. /**
  74. * @ORM\Column(type="datetime")
  75. */
  76. private $updated;
  77. /**
  78. * @ORM\Column(type="integer")
  79. */
  80. private $updatedby;
  81. public function getId(): ?int
  82. {
  83. return $this->getMProductdownloadId();
  84. }
  85. public function getAdClientId(): ?int
  86. {
  87. return $this->ad_client_id;
  88. }
  89. public function setAdClientId(int $ad_client_id): self
  90. {
  91. $this->ad_client_id = $ad_client_id;
  92. return $this;
  93. }
  94. public function getAdOrgId(): ?int
  95. {
  96. return $this->ad_org_id;
  97. }
  98. public function setAdOrgId(int $ad_org_id): self
  99. {
  100. $this->ad_org_id = $ad_org_id;
  101. return $this;
  102. }
  103. public function getCreated(): ?\DateTimeInterface
  104. {
  105. return $this->created;
  106. }
  107. public function setCreated(\DateTimeInterface $created): self
  108. {
  109. $this->created = $created;
  110. return $this;
  111. }
  112. public function getCreatedby(): ?int
  113. {
  114. return $this->createdby;
  115. }
  116. public function setCreatedby(int $createdby): self
  117. {
  118. $this->createdby = $createdby;
  119. return $this;
  120. }
  121. public function getDownloadurl(): ?string
  122. {
  123. return \App\Shared\Utils\UrlHelper::normalizeAssetUrl($this->downloadurl);
  124. }
  125. public function setDownloadurl(string $downloadurl): self
  126. {
  127. $this->downloadurl = $downloadurl;
  128. return $this;
  129. }
  130. public function getIsactive(): ?string
  131. {
  132. return $this->isactive;
  133. }
  134. public function setIsactive(string $isactive): self
  135. {
  136. $this->isactive = $isactive;
  137. return $this;
  138. }
  139. public function isActive(): ?bool
  140. {
  141. return $this->getIsactive() === "Y";
  142. }
  143. public function setActive(bool $active): self
  144. {
  145. $this->setIsactive($active ? "Y" : "N");
  146. return $this;
  147. }
  148. public function getIscatalog(): ?string
  149. {
  150. return $this->iscatalog;
  151. }
  152. public function setIscatalog(string $iscatalog): self
  153. {
  154. $this->iscatalog = $iscatalog;
  155. return $this;
  156. }
  157. public function isCatalog(): ?bool
  158. {
  159. return $this->getIscatalog() === "Y";
  160. }
  161. public function setCatalog(bool $catalog): self
  162. {
  163. $this->setIscatalog($catalog ? "Y" : "N");
  164. return $this;
  165. }
  166. public function getIscover(): ?string
  167. {
  168. return $this->iscover;
  169. }
  170. public function setIscover(string $iscover): self
  171. {
  172. $this->iscover = $iscover;
  173. return $this;
  174. }
  175. public function isCover(): ?bool
  176. {
  177. return $this->getIscover() === "Y";
  178. }
  179. public function setCover(bool $cover): self
  180. {
  181. $this->setIscover($cover ? "Y" : "N");
  182. return $this;
  183. }
  184. public function getIsonline(): ?string
  185. {
  186. return $this->isonline;
  187. }
  188. public function setIsonline(string $isonline): self
  189. {
  190. $this->isonline = $isonline;
  191. return $this;
  192. }
  193. public function isOnline(): ?bool
  194. {
  195. return $this->getIsonline() === "Y";
  196. }
  197. public function setOnline(bool $online): self
  198. {
  199. $this->setIsonline($online ? "Y" : "N");
  200. return $this;
  201. }
  202. public function getMProduct(): ?MProduct
  203. {
  204. return $this->m_product;
  205. }
  206. public function setMProduct(?MProduct $m_product): self
  207. {
  208. $this->m_product = $m_product;
  209. return $this;
  210. }
  211. public function getMProductId(): ?int
  212. {
  213. return $this->m_product_id;
  214. }
  215. public function setMProductId(int $m_product_id): self
  216. {
  217. $this->m_product_id = $m_product_id;
  218. return $this;
  219. }
  220. public function getMProductdownloadId(): ?int
  221. {
  222. return $this->m_productdownload_id;
  223. }
  224. public function setMProductdownloadId(int $m_productdownload_id): self
  225. {
  226. $this->m_productdownload_id = $m_productdownload_id;
  227. return $this;
  228. }
  229. public function getMProductdownloadUu(): ?string
  230. {
  231. return $this->m_productdownload_uu;
  232. }
  233. public function setMProductdownloadUu(string $m_productdownload_uu): self
  234. {
  235. $this->m_productdownload_uu = $m_productdownload_uu;
  236. return $this;
  237. }
  238. public function getName(): ?string
  239. {
  240. return $this->name;
  241. }
  242. public function setName(string $name): self
  243. {
  244. $this->name = $name;
  245. return $this;
  246. }
  247. public function getParent(): ?MProduct
  248. {
  249. return $this->getMProduct();
  250. }
  251. public function getSeqno(): ?int
  252. {
  253. return $this->seqno;
  254. }
  255. public function setSeqno(int $seqno): self
  256. {
  257. $this->seqno = $seqno;
  258. return $this;
  259. }
  260. public function getUpdated(): ?\DateTimeInterface
  261. {
  262. return $this->updated;
  263. }
  264. public function setUpdated(\DateTimeInterface $updated): self
  265. {
  266. $this->updated = $updated;
  267. return $this;
  268. }
  269. public function getUpdatedby(): ?int
  270. {
  271. return $this->updatedby;
  272. }
  273. public function setUpdatedby(int $updatedby): self
  274. {
  275. $this->updatedby = $updatedby;
  276. return $this;
  277. }
  278. }