src/Entity/Annonces.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\CreatedAtTrait;
  4. use App\Repository\AnnoncesRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassAnnoncesRepository::class)]
  8. class Annonces
  9. {
  10.     use CreatedAtTrait;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $name null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $description null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $slug null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $ville null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $pays null;
  25.     #[ORM\Column(typeTypes::TEXT)]
  26.     private ?string $imageFileName null;
  27.     #[ORM\Column(typeTypes::ARRAY)]
  28.     private ?array $imageFileOthers null;
  29.     #[ORM\ManyToOne(inversedBy'annonces')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private ?Users $users null;  
  32.     #[ORM\ManyToOne(inversedBy'annonces')]
  33.     #[ORM\JoinColumn(nullablefalse)]
  34.     private ?CategoriesAnnonces $categoriesannonces null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?bool $bannerAutorisation null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?bool $homeAutorisation null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?bool $publicityAutorisation null;
  41.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  42.     private ?string $siteWeb null;
  43.     public function __construct()
  44.     {
  45.         $this->created_at = new \DateTimeImmutable();
  46.     }
  47.     
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getName(): ?string
  53.     {
  54.         return $this->name;
  55.     }
  56.     public function setName(string $name): static
  57.     {
  58.         $this->name $name;
  59.         return $this;
  60.     }
  61.     public function getDescription(): ?string
  62.     {
  63.         return $this->description;
  64.     }
  65.     public function setDescription(string $description): static
  66.     {
  67.         $this->description $description;
  68.         return $this;
  69.     }
  70.     public function getSlug(): ?string
  71.     {
  72.         return $this->slug;
  73.     }
  74.     public function setSlug(string $slug): static
  75.     {
  76.         $this->slug $slug;
  77.         return $this;
  78.     }
  79.     public function getVille(): ?string
  80.     {
  81.         return $this->ville;
  82.     }
  83.     public function setVille(string $ville): static
  84.     {
  85.         $this->ville $ville;
  86.         return $this;
  87.     }
  88.     public function getPays(): ?string
  89.     {
  90.         return $this->pays;
  91.     }
  92.     public function setPays(string $pays): static
  93.     {
  94.         $this->pays $pays;
  95.         return $this;
  96.     }
  97.     public function getImageFileName(): ?string
  98.     {
  99.         return $this->imageFileName;
  100.     }
  101.     public function setImageFileName(string $imageFileName): static
  102.     {
  103.         $this->imageFileName $imageFileName;
  104.         return $this;
  105.     }
  106.     public function getImageFileOthers(): ?array
  107.     {
  108.         return $this->imageFileOthers;
  109.     }
  110.     public function setImageFileOthers(array $imageFileOthers): static
  111.     {
  112.         $this->imageFileOthers $imageFileOthers;
  113.         return $this;
  114.     }
  115.         
  116.     public function getUsers(): ?Users
  117.     {
  118.         return $this->users;
  119.     }
  120.     public function setUsers(?Users $users): static
  121.     {
  122.         $this->users $users;
  123.         return $this;
  124.     }
  125.         
  126.     public function getCategoriesannonces(): ?CategoriesAnnonces
  127.     {
  128.         return $this->categoriesannonces;
  129.     }
  130.     public function setCategoriesannonces(?CategoriesAnnonces $categoriesannonces): static
  131.     {
  132.         $this->categoriesannonces $categoriesannonces;
  133.         return $this;
  134.     }
  135.     public function isBannerAutorisation(): ?bool
  136.     {
  137.         return $this->bannerAutorisation;
  138.     }
  139.     public function setBannerAutorisation(?bool $bannerAutorisation): static
  140.     {
  141.         $this->bannerAutorisation $bannerAutorisation;
  142.         return $this;
  143.     }
  144.     public function isHomeAutorisation(): ?bool
  145.     {
  146.         return $this->homeAutorisation;
  147.     }
  148.     public function setHomeAutorisation(?bool $homeAutorisation): static
  149.     {
  150.         $this->homeAutorisation $homeAutorisation;
  151.         return $this;
  152.     }
  153.     public function isPublicityAutorisation(): ?bool
  154.     {
  155.         return $this->publicityAutorisation;
  156.     }
  157.     public function setPublicityAutorisation(?bool $publicityAutorisation): static
  158.     {
  159.         $this->publicityAutorisation $publicityAutorisation;
  160.         return $this;
  161.     }
  162.     public function getSiteWeb(): ?string
  163.     {
  164.         return $this->siteWeb;
  165.     }
  166.     public function setSiteWeb(?string $siteWeb): static
  167.     {
  168.         $this->siteWeb $siteWeb;
  169.         return $this;
  170.     }
  171. }