src/Entity/MainCard.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MainCardRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMainCardRepository::class)]
  7. class MainCard
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $imageUrl null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $title null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $description null;
  19.     #[ORM\Column(typeTypes::SMALLINTnullabletrue)]
  20.     private ?int $ordering null;
  21.     #[ORM\Column]
  22.     private ?bool $isMain null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getImageUrl(): ?string
  28.     {
  29.         return $this->imageUrl;
  30.     }
  31.     public function setImageUrl(string $imageUrl): self
  32.     {
  33.         $this->imageUrl $imageUrl;
  34.         return $this;
  35.     }
  36.     public function getTitle(): ?string
  37.     {
  38.         return $this->title;
  39.     }
  40.     public function setTitle(?string $title): self
  41.     {
  42.         $this->title $title;
  43.         return $this;
  44.     }
  45.     public function getDescription(): ?string
  46.     {
  47.         return $this->description;
  48.     }
  49.     public function setDescription(?string $description): self
  50.     {
  51.         $this->description $description;
  52.         return $this;
  53.     }
  54.     public function getOrdering(): ?int
  55.     {
  56.         return $this->ordering;
  57.     }
  58.     public function setOrdering(?int $ordering): self
  59.     {
  60.         $this->ordering $ordering;
  61.         return $this;
  62.     }
  63.     public function isIsMain(): ?bool
  64.     {
  65.         return $this->isMain;
  66.     }
  67.     public function setIsMain(bool $isMain): self
  68.     {
  69.         $this->isMain $isMain;
  70.         return $this;
  71.     }
  72. }