src/Entity/System/Supplier.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Supplier
  6. *
  7. * @ORM\Table(name="ps_plazo_aprovisionamiento_proveedor", indexes={
  8. *
  9. * @ORM\Index(name="show_extern", columns={"show_extern"}),
  10. * @ORM\Index(name="envio24_48", columns={"envio24_48"})
  11. * })
  12. *
  13. * @ORM\Entity(repositoryClass="App\Repository\System\SupplierRepository")
  14. */
  15. class Supplier
  16. {
  17. public const PREPARATION_CUT_TIME_SUBSTRACT_MINUTES = 60;
  18. public const MAX_CANCELLATION_TIME_SUBSTRACT_MINUTES = 90;
  19. public const INNOVAGOODS_ID = 151309;
  20. /**
  21. * @var int
  22. *
  23. * @ORM\Column(name="id_plazo_aprovisionamiento_proveedor", type="integer", length=10)
  24. *
  25. * @ORM\Id
  26. */
  27. private $id;
  28. /**
  29. * @var string|null
  30. *
  31. * @ORM\Column(type="string" , length=100, nullable=true)
  32. */
  33. private $name;
  34. /**
  35. * @var int|null
  36. *
  37. * @ORM\Column(type="integer" , name="tiempo_min", nullable=true)
  38. */
  39. private $minimumTime;
  40. /**
  41. * @var int|null
  42. *
  43. * @ORM\Column(type="integer" , name="tiempo_max", nullable=true)
  44. */
  45. private $maximumTime;
  46. /**
  47. * @var bool|null
  48. *
  49. * @ORM\Column(type="boolean", nullable=true)
  50. */
  51. private $sincronized;
  52. /**
  53. * @var bool|null
  54. *
  55. * @ORM\Column(type="boolean", nullable=true)
  56. */
  57. private $onlyPack;
  58. /**
  59. * @var bool
  60. *
  61. * @ORM\Column(type="boolean")
  62. */
  63. private $notDiscounts = false;
  64. /**
  65. * @var string|null
  66. *
  67. * @ORM\Column(type="string" , length=255, nullable=true)
  68. */
  69. private $sendOrderUrl;
  70. /**
  71. * @var bool|null
  72. *
  73. * @ORM\Column(type="boolean", name="avisame", options={"default" : 0}, nullable=true)
  74. */
  75. private $letMeKnow;
  76. /**
  77. * @var int|null
  78. *
  79. * @ORM\Column(type="integer", name="destacados", length=11, options={"default" : 0}, nullable=true)
  80. */
  81. private $highlights;
  82. /**
  83. * @var int
  84. *
  85. * @ORM\Column(type="integer", name="stock_seguridad", length=11, options={"default" : 0})
  86. */
  87. private $securityStock;
  88. /**
  89. * @var string|null
  90. *
  91. * @ORM\Column(type="string", name="hora_maxima_cancelacion", length=10, nullable=true)
  92. */
  93. private $maximumCancellationTime;
  94. /**
  95. * @var int|null
  96. *
  97. * @ORM\Column(type="integer", name="envio24_48", length=1, options={"default" : 0}, nullable=true)
  98. */
  99. private $shipping24_48;
  100. /**
  101. * @var int|null
  102. *
  103. * @ORM\Column(type="integer", length=1, options={"default" : 0}, nullable=true)
  104. */
  105. private $showExtern;
  106. /**
  107. * @var int
  108. *
  109. * @ORM\Column(type="integer", length=5, options={"default" : 0})
  110. */
  111. private $delay;
  112. /**
  113. * @var int|null
  114. *
  115. * @ORM\Column(type="integer", length=11, options={"default" : 0}, nullable=true)
  116. */
  117. private $expeditionDays;
  118. /**
  119. * @var string|null
  120. *
  121. * @ORM\Column(type="string", length=10, options={"default" : "12:00:00"}, nullable=true)
  122. */
  123. private $expeditionMessageTime;
  124. /**
  125. * @var bool|null
  126. *
  127. * @ORM\Column(type="boolean", options={"default" : 0}, nullable=true)
  128. */
  129. private $forceStockExtern;
  130. /**
  131. * @var int
  132. *
  133. * @ORM\Column(type="integer", name="expedition_days_3_5", length=11)
  134. */
  135. private $expeditionDays3To5;
  136. /**
  137. * @var bool|null
  138. *
  139. * @ORM\Column(type="boolean", options={"default" : 0}, nullable=true)
  140. */
  141. private $commissionType;
  142. /**
  143. * @return int
  144. */
  145. public function getId(): int
  146. {
  147. return $this->id;
  148. }
  149. /**
  150. * @param int $id
  151. *
  152. * @return Supplier
  153. */
  154. public function setId(int $id): Supplier
  155. {
  156. $this->id = $id;
  157. return $this;
  158. }
  159. /**
  160. * @return string|null
  161. */
  162. public function getName(): ?string
  163. {
  164. return $this->name;
  165. }
  166. /**
  167. * @param string|null $name
  168. *
  169. * @return Supplier
  170. */
  171. public function setName(?string $name): Supplier
  172. {
  173. $this->name = $name;
  174. return $this;
  175. }
  176. /**
  177. * @return int|null
  178. */
  179. public function getMinimumTime(): ?int
  180. {
  181. return $this->minimumTime;
  182. }
  183. /**
  184. * @param int|null $minimumTime
  185. *
  186. * @return Supplier
  187. */
  188. public function setMinimumTime(?int $minimumTime): Supplier
  189. {
  190. $this->minimumTime = $minimumTime;
  191. return $this;
  192. }
  193. /**
  194. * @return int|null
  195. */
  196. public function getMaximumTime(): ?int
  197. {
  198. return $this->maximumTime;
  199. }
  200. /**
  201. * @param int|null $maximumTime
  202. *
  203. * @return Supplier
  204. */
  205. public function setMaximumTime(?int $maximumTime): Supplier
  206. {
  207. $this->maximumTime = $maximumTime;
  208. return $this;
  209. }
  210. /**
  211. * @return bool|null
  212. */
  213. public function getSincronized(): ?bool
  214. {
  215. return $this->sincronized;
  216. }
  217. /**
  218. * @param bool|null $sincronized
  219. *
  220. * @return Supplier
  221. */
  222. public function setSincronized(?bool $sincronized): Supplier
  223. {
  224. $this->sincronized = $sincronized;
  225. return $this;
  226. }
  227. /**
  228. * @return bool|null
  229. */
  230. public function getOnlyPack(): ?bool
  231. {
  232. return $this->onlyPack;
  233. }
  234. /**
  235. * @param bool|null $onlyPack
  236. *
  237. * @return Supplier
  238. */
  239. public function setOnlyPack(?bool $onlyPack): Supplier
  240. {
  241. $this->onlyPack = $onlyPack;
  242. return $this;
  243. }
  244. public function getNotDiscounts(): bool
  245. {
  246. return $this->notDiscounts;
  247. }
  248. public function setNotDiscounts(bool $notDiscounts): Supplier
  249. {
  250. $this->notDiscounts = $notDiscounts;
  251. return $this;
  252. }
  253. /**
  254. * @return string|null
  255. */
  256. public function getSendOrderUrl(): ?string
  257. {
  258. return $this->sendOrderUrl;
  259. }
  260. /**
  261. * @param string|null $sendOrderUrl
  262. *
  263. * @return Supplier
  264. */
  265. public function setSendOrderUrl(?string $sendOrderUrl): Supplier
  266. {
  267. $this->sendOrderUrl = $sendOrderUrl;
  268. return $this;
  269. }
  270. /**
  271. * @return bool|null
  272. */
  273. public function getLetMeKnow(): ?bool
  274. {
  275. return $this->letMeKnow;
  276. }
  277. /**
  278. * @param bool|null $letMeKnow
  279. *
  280. * @return Supplier
  281. */
  282. public function setLetMeKnow(?bool $letMeKnow): Supplier
  283. {
  284. $this->letMeKnow = $letMeKnow;
  285. return $this;
  286. }
  287. /**
  288. * @return int|null
  289. */
  290. public function getHighlights(): ?int
  291. {
  292. return $this->highlights;
  293. }
  294. /**
  295. * @param int|null $highlights
  296. *
  297. * @return Supplier
  298. */
  299. public function setHighlights(?int $highlights): Supplier
  300. {
  301. $this->highlights = $highlights;
  302. return $this;
  303. }
  304. /**
  305. * @return int
  306. */
  307. public function getSecurityStock(): int
  308. {
  309. return $this->securityStock;
  310. }
  311. /**
  312. * @param int $securityStock
  313. *
  314. * @return Supplier
  315. */
  316. public function setSecurityStock(int $securityStock): Supplier
  317. {
  318. $this->securityStock = $securityStock;
  319. return $this;
  320. }
  321. /**
  322. * @return string|null
  323. */
  324. public function getMaximumCancellationTime(): ?string
  325. {
  326. return $this->maximumCancellationTime;
  327. }
  328. /**
  329. * @param string|null $maximumCancellationTime
  330. *
  331. * @return Supplier
  332. */
  333. public function setMaximumCancellationTime(?string $maximumCancellationTime): Supplier
  334. {
  335. $this->maximumCancellationTime = $maximumCancellationTime;
  336. return $this;
  337. }
  338. /**
  339. * @return int|null
  340. */
  341. public function getShipping2448(): ?int
  342. {
  343. return $this->shipping24_48;
  344. }
  345. /**
  346. * @param int|null $shipping24_48
  347. *
  348. * @return Supplier
  349. */
  350. public function setShipping2448(?int $shipping24_48): Supplier
  351. {
  352. $this->shipping24_48 = $shipping24_48;
  353. return $this;
  354. }
  355. /**
  356. * @return int|null
  357. */
  358. public function getShowExtern(): ?int
  359. {
  360. return $this->showExtern;
  361. }
  362. /**
  363. * @param int|null $showExtern
  364. *
  365. * @return Supplier
  366. */
  367. public function setShowExtern(?int $showExtern): Supplier
  368. {
  369. $this->showExtern = $showExtern;
  370. return $this;
  371. }
  372. /**
  373. * @return int
  374. */
  375. public function getDelay(): int
  376. {
  377. return $this->delay;
  378. }
  379. /**
  380. * @param int $delay
  381. *
  382. * @return Supplier
  383. */
  384. public function setDelay(int $delay): Supplier
  385. {
  386. $this->delay = $delay;
  387. return $this;
  388. }
  389. /**
  390. * @return int|null
  391. */
  392. public function getExpeditionDays(): ?int
  393. {
  394. return $this->expeditionDays;
  395. }
  396. /**
  397. * @param int|null $expeditionDays
  398. *
  399. * @return Supplier
  400. */
  401. public function setExpeditionDays(?int $expeditionDays): Supplier
  402. {
  403. $this->expeditionDays = $expeditionDays;
  404. return $this;
  405. }
  406. /**
  407. * @return string|null
  408. */
  409. public function getExpeditionMessageTime(): ?string
  410. {
  411. return $this->expeditionMessageTime;
  412. }
  413. /**
  414. * @param string|null $expeditionMessageTime
  415. *
  416. * @return Supplier
  417. */
  418. public function setExpeditionMessageTime(?string $expeditionMessageTime): Supplier
  419. {
  420. $this->expeditionMessageTime = $expeditionMessageTime;
  421. return $this;
  422. }
  423. /**
  424. * @return bool|null
  425. */
  426. public function isForceStockExtern(): ?bool
  427. {
  428. return $this->forceStockExtern;
  429. }
  430. /**
  431. * @param bool|null $forceStockExtern
  432. *
  433. * @return Supplier
  434. */
  435. public function setForceStockExtern(?bool $forceStockExtern): Supplier
  436. {
  437. $this->forceStockExtern = $forceStockExtern;
  438. return $this;
  439. }
  440. public function getExpeditionDays3To5(): int
  441. {
  442. return $this->expeditionDays3To5;
  443. }
  444. public function setExpeditionDays3To5(int $expeditionDays3To5): Supplier
  445. {
  446. $this->expeditionDays3To5 = $expeditionDays3To5;
  447. return $this;
  448. }
  449. public function getCommissionType(): ?bool
  450. {
  451. return $this->commissionType;
  452. }
  453. public function setCommissionType(?bool $commissionType): Supplier
  454. {
  455. $this->commissionType = $commissionType;
  456. return $this;
  457. }
  458. }