src/Entity/Entreprises.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\CreatedAtTrait;
  4. use App\Repository\EntreprisesRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassEntreprisesRepository::class)]
  8. class Entreprises
  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\ManyToOne(inversedBy'entreprises')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?Users $users null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $ville null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $pays null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $imageLogo null;
  28.     /* #[ORM\Column(type: Types::TEXT)]
  29.     /// private ?string $imageFileOthers = null;
  30.     private ?array $imageFileOthers = null;  */
  31.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  32.     private ?array $imageFileOthers = [];  /****/
  33.     #[ORM\ManyToOne(inversedBy'entreprises')]
  34.     #[ORM\JoinColumn(nullablefalse)]
  35.     private ?CategoriesEntreprises $categoriesentreprises null;
  36.     #[ORM\Column(length255)]
  37.     private ?string $slug null;
  38.     #[ORM\Column(nullabletrue)]
  39.     private ?bool $bannerAutorisation null;
  40.     #[ORM\Column(nullabletrue)]
  41.     private ?bool $homeAutorisation null;
  42.     #[ORM\Column(nullabletrue)]
  43.     private ?bool $publicityAutorisation null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $siteWeb null;
  46.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  47.     private ?string $mediaSocial1 null;
  48.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  49.     private ?string $mediaSocial2 null;
  50.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  51.     private ?string $mediaSocial3 null;
  52.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  53.     private ?string $mediaSocial4 null;
  54.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  55.     private ?string $mediaSocial5 null;
  56.     #[ORM\Column(typeTypes::BIGINT)]
  57.     private ?string $whatsappPhone null;
  58.     #[ORM\Column(typeTypes::BIGINT)]
  59.     private ?string $phone2 null;
  60.     public function __construct()
  61.     {
  62.         $this->created_at = new \DateTimeImmutable();
  63.     }
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getName(): ?string
  69.     {
  70.         return $this->name;
  71.     }
  72.     public function setName(string $name): static
  73.     {
  74.         $this->name $name;
  75.         return $this;
  76.     }
  77.     public function getDescription(): ?string
  78.     {
  79.         return $this->description;
  80.     }
  81.     public function setDescription(string $description): static
  82.     {
  83.         $this->description $description;
  84.         return $this;
  85.     }
  86.     public function getUsers(): ?Users
  87.     {
  88.         return $this->users;
  89.     }
  90.     public function setUsers(?Users $users): static
  91.     {
  92.         $this->users $users;
  93.         return $this;
  94.     }
  95.     public function getVille(): ?string
  96.     {
  97.         return $this->ville;
  98.     }
  99.     public function setVille(string $ville): static
  100.     {
  101.         $this->ville $ville;
  102.         return $this;
  103.     }
  104.     public function getPays(): ?string
  105.     {
  106.         return $this->pays;
  107.     }
  108.     public function setPays(string $pays): static
  109.     {
  110.         $this->pays $pays;
  111.         return $this;
  112.     }
  113.     public function getImageLogo(): ?string
  114.     {
  115.         return $this->imageLogo;
  116.     }
  117.     public function setImageLogo(string $imageLogo): static
  118.     {
  119.         $this->imageLogo $imageLogo;
  120.         return $this;
  121.     }
  122.     public function getImageFileOthers(): ?array
  123.     {
  124.         return $this->imageFileOthers///////////////
  125.     }
  126.     public function setImageFileOthers(array $imageFileOthers): static
  127.     {
  128.         $this->imageFileOthers $imageFileOthers;
  129.         return $this;
  130.     }
  131.     public function getCategoriesentreprises(): ?CategoriesEntreprises
  132.     {
  133.         return $this->categoriesentreprises;
  134.     }
  135.     public function setCategoriesentreprises(?CategoriesEntreprises $categoriesentreprises): static
  136.     {
  137.         $this->categoriesentreprises $categoriesentreprises;
  138.         return $this;
  139.     }
  140.     public function getSlug(): ?string
  141.     {
  142.         return $this->slug;
  143.     }
  144.     public function setSlug(string $slug): static
  145.     {
  146.         $this->slug $slug;
  147.         return $this;
  148.     }
  149.     public function isBannerAutorisation(): ?bool
  150.     {
  151.         return $this->bannerAutorisation;
  152.     }
  153.     public function setBannerAutorisation(?bool $bannerAutorisation): static
  154.     {
  155.         $this->bannerAutorisation $bannerAutorisation;
  156.         return $this;
  157.     }
  158.     public function isHomeAutorisation(): ?bool
  159.     {
  160.         return $this->homeAutorisation;
  161.     }
  162.     public function setHomeAutorisation(?bool $homeAutorisation): static
  163.     {
  164.         $this->homeAutorisation $homeAutorisation;
  165.         return $this;
  166.     }
  167.     public function isPublicityAutorisation(): ?bool
  168.     {
  169.         return $this->publicityAutorisation;
  170.     }
  171.     public function setPublicityAutorisation(?bool $publicityAutorisation): static
  172.     {
  173.         $this->publicityAutorisation $publicityAutorisation;
  174.         return $this;
  175.     }
  176.     public function getSiteWeb(): ?string
  177.     {
  178.         return $this->siteWeb;
  179.     }
  180.     public function setSiteWeb(?string $siteWeb): static
  181.     {
  182.         $this->siteWeb $siteWeb;
  183.         return $this;
  184.     }
  185.     public function getMediaSocial1(): ?string
  186.     {
  187.         return $this->mediaSocial1;
  188.     }
  189.     public function setMediaSocial1(?string $mediaSocial1): static
  190.     {
  191.         $this->mediaSocial1 $mediaSocial1;
  192.         return $this;
  193.     }
  194.     public function getMediaSocial2(): ?string
  195.     {
  196.         return $this->mediaSocial2;
  197.     }
  198.     public function setMediaSocial2(?string $mediaSocial2): static
  199.     {
  200.         $this->mediaSocial2 $mediaSocial2;
  201.         return $this;
  202.     }
  203.     public function getMediaSocial3(): ?string
  204.     {
  205.         return $this->mediaSocial3;
  206.     }
  207.     public function setMediaSocial3(?string $mediaSocial3): static
  208.     {
  209.         $this->mediaSocial3 $mediaSocial3;
  210.         return $this;
  211.     }
  212.     public function getMediaSocial4(): ?string
  213.     {
  214.         return $this->mediaSocial4;
  215.     }
  216.     public function setMediaSocial4(?string $mediaSocial4): static
  217.     {
  218.         $this->mediaSocial4 $mediaSocial4;
  219.         return $this;
  220.     }
  221.     public function getMediaSocial5(): ?string
  222.     {
  223.         return $this->mediaSocial5;
  224.     }
  225.     public function setMediaSocial5(?string $mediaSocial5): static
  226.     {
  227.         $this->mediaSocial5 $mediaSocial5;
  228.         return $this;
  229.     }
  230.     public function getWhatsappPhone(): ?string
  231.     {
  232.         return $this->whatsappPhone;
  233.     }
  234.     public function setWhatsappPhone(string $whatsappPhone): static
  235.     {
  236.         $this->whatsappPhone $whatsappPhone;
  237.         return $this;
  238.     }
  239.     public function getPhone2(): ?string
  240.     {
  241.         return $this->phone2;
  242.     }
  243.     public function setPhone2(string $phone2): static
  244.     {
  245.         $this->phone2 $phone2;
  246.         return $this;
  247.     }
  248. }