Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

121 linhas
3.5KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Reduction;
  3. use Doctrine\Common\Collections\Collection;
  4. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  5. use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface;
  6. use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
  7. use Lc\SovBundle\Model\User\GroupUserInterface;
  8. use Lc\SovBundle\Model\User\UserInterface;
  9. interface ReductionCatalogInterface
  10. {
  11. public function getCreatedBy(): ?UserInterface;
  12. public function setCreatedBy(?UserInterface $createdBy);
  13. public function getUpdatedBy(): ?UserInterface;
  14. public function setUpdatedBy(?UserInterface $updatedBy);
  15. public function getDevAlias(): ?string;
  16. public function setDevAlias(?string $devAlias);
  17. public function getTitle(): ?string;
  18. public function setTitle(string $title): ReductionCatalogInterface;
  19. public function getMerchant(): MerchantInterface;
  20. public function setMerchant(MerchantInterface $merchant): ReductionCatalogInterface;
  21. /**
  22. * @return Collection|ProductFamilyInterface[]
  23. */
  24. public function getProductFamilies(): Collection;
  25. public function addProductFamily(ProductFamilyInterface $productFamily
  26. ): ReductionCatalogInterface;
  27. public function removeProductFamily(ProductFamilyInterface $productFamily
  28. ): ReductionCatalogInterface;
  29. public function getProductFamily(): ?ProductFamilyInterface;
  30. public function setProductFamily(?ProductFamilyInterface $productFamily
  31. ): ReductionCatalogInterface;
  32. /**
  33. * @return Collection|ProductCategoryInterface[]
  34. */
  35. public function getProductCategories(): Collection;
  36. public function addProductCategory(ProductCategoryInterface $productCategory
  37. ): ReductionCatalogInterface;
  38. public function removeProductCategory(ProductCategoryInterface $productCategory
  39. ): ReductionCatalogInterface;
  40. /**
  41. * @return Collection|UserInterface[]
  42. */
  43. public function getUsers(): Collection;
  44. public function addUser(UserInterface $user): ReductionCatalogInterface;
  45. public function removeUser(UserInterface $user): ReductionCatalogInterface;
  46. /**
  47. * @return Collection|GroupUserInterface[]
  48. */
  49. public function getGroupUsers(): Collection;
  50. public function addGroupUser(GroupUserInterface $groupUser
  51. ): ReductionCatalogInterface;
  52. public function removeGroupUser(GroupUserInterface $groupUser
  53. ): ReductionCatalogInterface;
  54. public function getDateStart(): ?\DateTimeInterface;
  55. public function setDateStart(?\DateTimeInterface $dateStart
  56. ): ReductionCatalogInterface;
  57. public function getDateEnd(): ?\DateTimeInterface;
  58. public function setDateEnd(?\DateTimeInterface $dateEnd): ReductionCatalogInterface;
  59. public function getPermanent(): ?bool;
  60. public function setPermanent(bool $permanent): ReductionCatalogInterface;
  61. public function getValue(): ?float;
  62. public function setValue(?float $value): ReductionCatalogInterface;
  63. public function getUnit(): ?string;
  64. public function setUnit(?string $unit): ReductionCatalogInterface;
  65. public function getBehaviorTaxRate(): ?string;
  66. public function setBehaviorTaxRate(?string $behaviorTaxRate
  67. ): ReductionCatalogInterface;
  68. public function getStatus(): ?float;
  69. public function setStatus(float $status);
  70. public function getCreatedAt(): ?\DateTimeInterface;
  71. public function setCreatedAt(\DateTimeInterface $createdAt
  72. );
  73. public function getUpdatedAt(): ?\DateTimeInterface;
  74. public function setUpdatedAt(\DateTimeInterface $updatedAt
  75. );
  76. }