src/Entity/WebsiteInfo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\WebsiteInfoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassWebsiteInfoRepository::class)]
  6. class WebsiteInfo
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $title;
  14.     #[ORM\Column(type'text')]
  15.     private $description;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $photo;
  18.     #[ORM\Column(type'integer')]
  19.     private $number;
  20.     #[ORM\Column(type'boolean')]
  21.     private $original;
  22.     #[ORM\Column(type'integer'nullabletrue)]
  23.     private $unit;
  24.     #[ORM\ManyToOne(targetEntityWebsiteLanguage::class, inversedBy'websiteInfos')]
  25.     private $websiteLanguage;
  26.     #[ORM\Column(type'string'length255)]
  27.     private $slug;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getTitle(): ?string
  33.     {
  34.         return $this->title;
  35.     }
  36.     public function setTitle(string $title): self
  37.     {
  38.         $this->title $title;
  39.         return $this;
  40.     }
  41.     public function getDescription(): ?string
  42.     {
  43.         return $this->description;
  44.     }
  45.     public function setDescription(string $description): self
  46.     {
  47.         $this->description $description;
  48.         return $this;
  49.     }
  50.     public function getPhoto()
  51.     {
  52.         return $this->photo;
  53.     }
  54.     public function setPhoto($photo): self
  55.     {
  56.         $this->photo $photo;
  57.         return $this;
  58.     }
  59.     public function getNumber(): ?int
  60.     {
  61.         return $this->number;
  62.     }
  63.     public function setNumber(int $number): self
  64.     {
  65.         $this->number $number;
  66.         return $this;
  67.     }
  68.     public function getOriginal(): ?bool
  69.     {
  70.         return $this->original;
  71.     }
  72.     public function setOriginal(bool $original): self
  73.     {
  74.         $this->original $original;
  75.         return $this;
  76.     }
  77.     public function getUnit(): ?int
  78.     {
  79.         return $this->unit;
  80.     }
  81.     public function setUnit(int $unit): self
  82.     {
  83.         $this->unit $unit;
  84.         return $this;
  85.     }
  86.     public function getWebsiteLanguage(): ?WebsiteLanguage
  87.     {
  88.         return $this->websiteLanguage;
  89.     }
  90.     public function setWebsiteLanguage(?WebsiteLanguage $websiteLanguage): self
  91.     {
  92.         $this->websiteLanguage $websiteLanguage;
  93.         return $this;
  94.     }
  95.     public function getSlug(): ?string
  96.     {
  97.         return $this->slug;
  98.     }
  99.     public function setSlug(string $slug): self
  100.     {
  101.         $this->slug $slug;
  102.         return $this;
  103.     }
  104. }