src/Domain/Entity/Translation/PaywallTranslation.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity\Translation;
  3. use App\Domain\Entity\Media;
  4. use Locastic\ApiPlatformTranslationBundle\Model\AbstractTranslation;
  5. /**
  6.  * Class PaywallTranslation
  7.  * @package App\Domain\Entity\Translation
  8.  */
  9. class PaywallTranslation extends AbstractTranslation
  10. {
  11.     protected ?int $id null;
  12.     public string $description;
  13.     public string $promoStickerText;
  14.     public ?Media $picture null;
  15.     public ?bool $isActive false;
  16.     /**
  17.      * @return string
  18.      */
  19.     public function getDescription(): string
  20.     {
  21.         return $this->description;
  22.     }
  23.     /**
  24.      * @param string $text
  25.      */
  26.     public function setDescription(string $text): void
  27.     {
  28.         $this->description $text;
  29.     }
  30. }