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

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. /**
  16.  * @ExclusionPolicy("all")
  17.  */
  18. class TrashItemTranslation
  19. {
  20.     /**
  21.      * @var int
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var TrashItemInterface
  26.      */
  27.     private $trashItem;
  28.     /**
  29.      * @Expose
  30.      * @Groups({"trash_item_admin_api"})
  31.      *
  32.      * @var string|null
  33.      */
  34.     private $locale;
  35.     /**
  36.      * @Expose
  37.      * @Groups({"trash_item_admin_api"})
  38.      *
  39.      * @var string
  40.      */
  41.     private $title;
  42.     public function __construct(TrashItemInterface $trashItem, ?string $localestring $title)
  43.     {
  44.         $this->trashItem $trashItem;
  45.         $this->locale $locale;
  46.         $this->title $title;
  47.     }
  48.     public function getTrashItem(): TrashItemInterface
  49.     {
  50.         return $this->trashItem;
  51.     }
  52.     public function setTrashItem(TrashItemInterface $trashItem): self
  53.     {
  54.         $this->trashItem $trashItem;
  55.         return $this;
  56.     }
  57.     public function getLocale(): ?string
  58.     {
  59.         return $this->locale;
  60.     }
  61.     public function setLocale(?string $locale): self
  62.     {
  63.         $this->locale $locale;
  64.         return $this;
  65.     }
  66.     public function getTitle(): string
  67.     {
  68.         return $this->title;
  69.     }
  70.     public function setTitle(string $title): self
  71.     {
  72.         $this->title $title;
  73.         return $this;
  74.     }
  75. }