vendor/sulu/sulu/src/Sulu/Bundle/TrashBundle/Domain/Model/TrashItemTranslation.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of Sulu.
  5. *
  6. * (c) Sulu GmbH
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace Sulu\Bundle\TrashBundle\Domain\Model;
  12. use JMS\Serializer\Annotation\ExclusionPolicy;
  13. use JMS\Serializer\Annotation\Expose;
  14. use JMS\Serializer\Annotation\Groups;
  15. #[ExclusionPolicy('all')]
  16. class TrashItemTranslation
  17. {
  18. /**
  19. * @var int
  20. */
  21. private $id;
  22. /**
  23. * @var TrashItemInterface
  24. */
  25. private $trashItem;
  26. /**
  27. * @var string|null
  28. */
  29. #[Expose]
  30. #[Groups(['trash_item_admin_api'])]
  31. private $locale;
  32. /**
  33. * @var string
  34. */
  35. #[Expose]
  36. #[Groups(['trash_item_admin_api'])]
  37. private $title;
  38. public function __construct(TrashItemInterface $trashItem, ?string $locale, string $title)
  39. {
  40. $this->trashItem = $trashItem;
  41. $this->locale = $locale;
  42. $this->title = $title;
  43. }
  44. public function getTrashItem(): TrashItemInterface
  45. {
  46. return $this->trashItem;
  47. }
  48. public function setTrashItem(TrashItemInterface $trashItem): self
  49. {
  50. $this->trashItem = $trashItem;
  51. return $this;
  52. }
  53. public function getLocale(): ?string
  54. {
  55. return $this->locale;
  56. }
  57. public function setLocale(?string $locale): self
  58. {
  59. $this->locale = $locale;
  60. return $this;
  61. }
  62. public function getTitle(): string
  63. {
  64. return $this->title;
  65. }
  66. public function setTitle(string $title): self
  67. {
  68. $this->title = $title;
  69. return $this;
  70. }
  71. }