src/Entity/Banner.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BannerRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassBannerRepository::class)]
  7. class Banner implements EntityInterface
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $page null;
  15.     #[ORM\Column]
  16.     private ?int $position null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $href null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $cont null;
  21.     #[ORM\Column]
  22.     private ?bool $visible null;
  23.     #[ORM\Column(typeTypes::SMALLINT)]
  24.     private ?int $prior null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getPage(): ?string
  30.     {
  31.         return $this->page;
  32.     }
  33.     public function setPage(string $page): self
  34.     {
  35.         $this->page $page;
  36.         return $this;
  37.     }
  38.     public function getPosition(): ?int
  39.     {
  40.         return $this->position;
  41.     }
  42.     public function setPosition(int $position): self
  43.     {
  44.         $this->position $position;
  45.         return $this;
  46.     }
  47.     public function getHref(): ?string
  48.     {
  49.         return $this->href;
  50.     }
  51.     public function setHref(string $href): self
  52.     {
  53.         $this->href $href;
  54.         return $this;
  55.     }
  56.     public function getCont(): ?string
  57.     {
  58.         return $this->cont;
  59.     }
  60.     public function setCont(string $cont): self
  61.     {
  62.         $this->cont $cont;
  63.         return $this;
  64.     }
  65.     public function isVisible(): ?bool
  66.     {
  67.         return $this->visible;
  68.     }
  69.     public function setVisible(bool $visible): self
  70.     {
  71.         $this->visible $visible;
  72.         return $this;
  73.     }
  74.     public function getPrior(): ?int
  75.     {
  76.         return $this->prior;
  77.     }
  78.     public function setPrior(int $prior): self
  79.     {
  80.         $this->prior $prior;
  81.         return $this;
  82.     }
  83. }