src/Entity/Setting.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Traits\ActiveTrait;
  5. use App\Entity\Traits\DeleteTrait;
  6. use App\Entity\Traits\TranslateTrait;
  7. use App\Repository\SettingRepository;
  8. use App\Entity\Traits\FileUploadTrait;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. use App\Entity\Traits\ImageUploadTrait;
  11. use App\Entity\Traits\VideoUploadTrait;
  12. use App\Entity\Interfaces\DefaultEntity;
  13. use App\Entity\Traits\TitleAndContentTrait;
  14. use Gedmo\Timestampable\Traits\TimestampableEntity;
  15. /**
  16.  * @Gedmo\Loggable
  17.  */
  18. #[ORM\Entity(repositoryClass\App\Repository\SettingRepository::class)]
  19. class Setting implements DefaultEntity
  20. {
  21.     use TitleAndContentTrait;
  22.     use ActiveTrait;
  23.     use DeleteTrait;
  24.     use TimestampableEntity;
  25.     use TranslateTrait;
  26.     use ImageUploadTrait;
  27.     use FileUploadTrait;
  28.     use VideoUploadTrait;
  29.     #[ORM\Column(name'id'type'integer')]
  30.     #[ORM\Id]
  31.     #[ORM\GeneratedValue(strategy'AUTO')]
  32.     private $id;
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     private $displayText;
  35.     #[ORM\Column(type'string'length255nullabletrue)]
  36.     private $iconClass;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getDisplayText(): ?string
  42.     {
  43.         return $this->displayText;
  44.     }
  45.     public function setDisplayText(?string $displayText): self
  46.     {
  47.         $this->displayText $displayText;
  48.         return $this;
  49.     }
  50.     public function getIconClass(): ?string
  51.     {
  52.         return $this->iconClass;
  53.     }
  54.     public function setIconClass($iconClass): self
  55.     {
  56.         $this->iconClass $iconClass;
  57.         return $this;
  58.     }
  59. }