You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.0KB

  1. <?php
  2. namespace Lc\SovBundle\Model\Newsletter;
  3. use Doctrine\Common\Collections\Collection;
  4. use Lc\SovBundle\Model\User\UserInterface;
  5. interface NewsletterInterface
  6. {
  7. public function getTitle(): ?string;
  8. public function setTitle(string $title);
  9. public function getDescription(): ?string;
  10. public function setDescription(?string $description);
  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. /**
  18. * @return Collection|UserInterface[]
  19. */
  20. public function getUsers(): Collection;
  21. public function addUser(UserInterface $user): NewsletterInterface;
  22. public function removeUser(UserInterface $user): NewsletterInterface;
  23. public function getIsMain(): ?bool;
  24. public function setIsMain(?bool $isMain): NewsletterInterface;
  25. public function getMetaTitle(): ?string;
  26. public function setMetaTitle(?string $metaTitle);
  27. public function getMetaDescription(): ?string;
  28. public function setMetaDescription(?string $metaDescription);
  29. public function setOldUrls($oldUrls);
  30. public function getOldUrls(): ?array;
  31. public function getSlug(): ?string;
  32. public function setSlug(?string $slug);
  33. /**
  34. * @return float
  35. */
  36. public function getPosition(): float;
  37. /**
  38. * @param float $position
  39. * @return $this
  40. */
  41. public function setPosition(float $position);
  42. public function clearPosition();
  43. public function getStatus(): ?float;
  44. public function setStatus(float $status);
  45. public function getCreatedAt(): ?\DateTimeInterface;
  46. public function setCreatedAt(\DateTimeInterface $createdAt);
  47. public function getUpdatedAt(): ?\DateTimeInterface;
  48. public function setUpdatedAt(\DateTimeInterface $updatedAt);
  49. }