src/Entity/Users.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\CreatedAtTrait;
  4. use App\Repository\UsersRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  11. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  12. use Symfony\Component\Security\Core\User\UserInterface;
  13. #[ORM\Entity(repositoryClassUsersRepository::class)]
  14. #[UniqueEntity(fields: ['email'], message'There is already an account with this email')]
  15. //#[UniqueEntity(fields: ['email'], message: 'There is already an account with this email')]
  16. class Users implements UserInterfacePasswordAuthenticatedUserInterface
  17. {
  18.     use CreatedAtTrait;
  19.     #[ORM\Id]
  20.     #[ORM\GeneratedValue]
  21.     #[ORM\Column]
  22.     private ?int $id null;
  23.     #[ORM\Column(length180uniquetrue)]
  24.     private ?string $email null;
  25.     #[ORM\Column]
  26.     private array $roles = [];
  27.     /**
  28.      * @var string The hashed password
  29.      */
  30.     #[ORM\Column]
  31.     private ?string $password null;
  32.     #[ORM\Column(length100)]
  33.     #[Assert\NotBlank(message'Ce champs est obligatoire')]
  34.     private ?string $lastname null;
  35.     #[ORM\Column(length100)]
  36.     #[Assert\NotBlank(message'Ce champs est obligatoire')]
  37.     private ?string $firstname null;
  38.     #[ORM\Column(length255)]
  39.     #[Assert\NotBlank(message'Ce champs est obligatoire')]
  40.     private ?string $address null;
  41.     #[ORM\Column(length20)]
  42.     private ?string $zipcode null;
  43.     #[ORM\Column(length150)]
  44.     #[Assert\NotBlank(message'Ce champs est obligatoire')]
  45.     private ?string $city null;
  46.     #[ORM\Column(type'boolean')]
  47.     private $is_verified false;
  48.     /// #[ORM\Column(nullable: true)]
  49.     /// private ?bool $Autorisation = null;
  50.     #[ORM\Column(nullabletrue)]
  51.     private ?bool $Autorisation null;
  52.     // #[ORM\Column(length: 100)]
  53.     // private ?string $resetToken = null;
  54.     #[ORM\Column(length100)]
  55.     private $resetToken false;
  56.     #[ORM\OneToMany(mappedBy'users'targetEntityOrders::class)]
  57.     private Collection $orders;
  58.     #[ORM\OneToMany(mappedBy'Users'targetEntityProducts::class, orphanRemovaltrue)]
  59.     private Collection $products;
  60.     #[ORM\Column(length255)]
  61.     private ?string $imageUser null;
  62.     #[ORM\OneToMany(mappedBy'Users'targetEntityProjects::class, orphanRemovaltrue)]
  63.     private Collection $projects;
  64.     #[ORM\OneToMany(mappedBy'users'targetEntityImmobiliers::class, orphanRemovaltrue)]
  65.     private Collection $immobiliers;
  66.     #[ORM\OneToMany(mappedBy'users'targetEntityHebergements::class)]
  67.     private Collection $hebergements;
  68.                                         /*
  69.     #[ORM\Column]
  70.     #[Assert\NotBlank(message: 'Ce champs est obligatoire')]
  71.     private ?int $phonePublic = null;
  72.     #[ORM\Column(nullable: true)]
  73.     private ?int $phonePrivate = null;
  74.                                             */
  75.     #[ORM\Column(length255)]
  76.     //#[Assert\NotBlank(message: 'Ce champs est obligatoire')]
  77.     private ?string $imageCouverture null;
  78.     #[ORM\Column(length255)]
  79.     #[Assert\NotBlank(message'Ce champs est obligatoire')]
  80.     private ?string $job null;
  81.     #[ORM\Column(length255)]
  82.     #[Assert\NotBlank(message'Ce champs est obligatoire')]
  83.     private ?string $country null;
  84.     #[ORM\Column(length255nullabletrue)]
  85.     private ?string $emailPhoneSecured null;
  86.     #[ORM\Column(typeTypes::BIGINT)]
  87.     private ?string $phonePublic null;
  88.     #[ORM\Column(typeTypes::BIGINTnullabletrue)]
  89.     private ?string $phonePrivate null;
  90.     #[ORM\OneToMany(mappedBy'users'targetEntityPrestations::class)]
  91.     private Collection $prestations;
  92.     #[ORM\OneToMany(mappedBy'users'targetEntityEntreprises::class)]
  93.     private Collection $entreprises;
  94.     #[ORM\Column(length255nullabletrue)]
  95.     private ?string $siteWeb null;
  96.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  97.     private ?string $mediaSocial1 null;
  98.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  99.     private ?string $mediaSocial2 null;
  100.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  101.     private ?string $mediaSocial3 null;
  102.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  103.     private ?string $mediaSocial4 null;
  104.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  105.     private ?string $mediaSocial5 null;
  106.     #[ORM\Column(nullabletrue)]
  107.     private ?bool $creationEntreprise null;
  108.     #[ORM\Column(nullabletrue)]
  109.     private ?bool $creationHebergement null;
  110.     #[ORM\Column(length255nullabletrue)]
  111.     private ?string $mediaSocialName1 null;
  112.     #[ORM\Column(length255nullabletrue)]
  113.     private ?string $mediaSocialName2 null;
  114.     #[ORM\Column(length255nullabletrue)]
  115.     private ?string $mediaSocialName3 null;
  116.     #[ORM\Column(length255nullabletrue)]
  117.     private ?string $mediaSocialName4 null;
  118.     #[ORM\Column(length255nullabletrue)]
  119.     private ?string $mediaSocialName5 null;
  120.     #[ORM\ManyToOne(inversedBy'users')]
  121.     private ?CategoriesUsers $categoriesusers null;
  122.     #[ORM\Column(nullabletrue)]
  123.     private ?bool $visibilitySearch null;
  124.     #[ORM\OneToMany(mappedBy'users'targetEntityEmplois::class)]
  125.     private Collection $emplois;
  126.     #[ORM\OneToMany(mappedBy'users'targetEntityAnnonces::class)]
  127.     private Collection $annonces;
  128.     #[ORM\Column(nullabletrue)]
  129.     private ?bool $accessCv null;
  130.     #[ORM\Column(nullabletrue)]
  131.     private ?bool $creationAnnonce null;
  132.     #[ORM\Column(nullabletrue)]
  133.     private ?bool $creationEmploi null;
  134.     #[ORM\OneToMany(mappedBy'users'targetEntityVideos::class)]
  135.     private Collection $videos;
  136.     #[ORM\Column]
  137.     private ?bool $creationVideo null;
  138.     #[ORM\OneToMany(mappedBy'users'targetEntityStatistiques::class)]
  139.     private Collection $statistiques;
  140.     #[ORM\Column(nullabletrue)]
  141.     private ?bool $homeAutorisation null;
  142.     #[ORM\Column(nullabletrue)]
  143.     private ?bool $bannerAutorisation null;
  144.     #[ORM\Column(nullabletrue)]
  145.     private ?bool $publicityAutorisation null;
  146.     public function __construct()
  147.     {
  148.         $this->orders = new ArrayCollection();
  149.         $this->created_at = new \DateTimeImmutable();
  150.         /// $this->createdAt = new \DateTimeImmutable(); /////////////////
  151.         $this->products = new ArrayCollection();
  152.         $this->projects = new ArrayCollection();
  153.         $this->immobiliers = new ArrayCollection();
  154.         $this->hebergements = new ArrayCollection();
  155.         $this->prestations = new ArrayCollection();
  156.         $this->entreprises = new ArrayCollection();
  157.         $this->emplois = new ArrayCollection();
  158.         $this->annonces = new ArrayCollection();
  159.         $this->videos = new ArrayCollection();
  160.         $this->statistiques = new ArrayCollection();
  161.     }
  162.     public function getId(): ?int
  163.     {
  164.         return $this->id;
  165.     }
  166.     public function getEmail(): ?string
  167.     {
  168.         return $this->email;
  169.     }
  170.     public function setEmail(string $email): static
  171.     {
  172.         $this->email $email;
  173.         return $this;
  174.     }
  175.     /**
  176.      * A visual identifier that represents this user.
  177.      *
  178.      * @see UserInterface
  179.      */
  180.     public function getUserIdentifier(): string
  181.     {
  182.         return (string) $this->email;
  183.     }
  184.     /**
  185.      * @see UserInterface
  186.      */
  187.     public function getRoles(): array
  188.     {
  189.         $roles $this->roles;
  190.         // guarantee every user at least has ROLE_USER
  191.         $roles[] = 'ROLE_USER';
  192.         return array_unique($roles);
  193.     }
  194.     public function setRoles(array $roles): static
  195.     {
  196.         $this->roles $roles;
  197.         return $this;
  198.     }
  199.     /**
  200.      * @see PasswordAuthenticatedUserInterface
  201.      */
  202.     public function getPassword(): string
  203.     {
  204.         return $this->password;
  205.     }
  206.     public function setPassword(string $password): static
  207.     {
  208.         $this->password $password;
  209.         return $this;
  210.     }
  211.     /**
  212.      * @see UserInterface
  213.      */
  214.     public function eraseCredentials(): void
  215.     {
  216.         // If you store any temporary, sensitive data on the user, clear it here
  217.         // $this->plainPassword = null;
  218.     }
  219.     public function getLastname(): ?string
  220.     {
  221.         return $this->lastname;
  222.     }
  223.     public function setLastname(string $lastname): static
  224.     {
  225.         $this->lastname $lastname;
  226.         return $this;
  227.     }
  228.     public function getFirstname(): ?string
  229.     {
  230.         return $this->firstname;
  231.     }
  232.     public function setFirstname(string $firstname): static
  233.     {
  234.         $this->firstname $firstname;
  235.         return $this;
  236.     }
  237.     public function getAddress(): ?string
  238.     {
  239.         return $this->address;
  240.     }
  241.     public function setAddress(string $address): static
  242.     {
  243.         $this->address $address;
  244.         return $this;
  245.     }
  246.     public function getZipcode(): ?string
  247.     {
  248.         return $this->zipcode;
  249.     }
  250.     public function setZipcode(string $zipcode): static
  251.     {
  252.         $this->zipcode $zipcode;
  253.         return $this;
  254.     }
  255.     public function getCity(): ?string
  256.     {
  257.         return $this->city;
  258.     }
  259.     public function setCity(string $city): static
  260.     {
  261.         $this->city $city;
  262.         return $this;
  263.     }
  264.     public function getIsVerified(): ?bool
  265.     {
  266.         return $this->is_verified;
  267.     }
  268.     public function setIsVerified(bool $is_verified): self
  269.     {
  270.         $this->is_verified $is_verified;
  271.         return $this;
  272.     }
  273.     public function getResetToken(): ?string
  274.     {
  275.         return $this->resetToken;
  276.     }
  277.     public function setResetToken(?string $resetToken): self
  278.     {
  279.         $this->resetToken $resetToken;
  280.         return $this;
  281.     }
  282.     /**
  283.      * @return Collection<int, Orders>
  284.      */
  285.     public function getOrders(): Collection
  286.     {
  287.         return $this->orders;
  288.     }
  289.     public function addOrder(Orders $order): static
  290.     {
  291.         if (!$this->orders->contains($order)) {
  292.             $this->orders->add($order);
  293.             $order->setUsers($this);
  294.         }
  295.         return $this;
  296.     }
  297.     public function removeOrder(Orders $order): static
  298.     {
  299.         if ($this->orders->removeElement($order)) {
  300.             // set the owning side to null (unless already changed)
  301.             if ($order->getUsers() === $this) {
  302.                 $order->setUsers(null);
  303.             }
  304.         }
  305.         return $this;
  306.     }
  307.     /**
  308.      * @return Collection<int, Products>
  309.      */
  310.     public function getProducts(): Collection
  311.     {
  312.         return $this->products;
  313.     }
  314.     /******** */
  315.     public function addProduct(Products $product): static
  316.     {
  317.         if (!$this->products->contains($product)) {
  318.             $this->products->add($product);
  319.             $product->setUsers($this); ////*** */
  320.         }
  321.         return $this;
  322.     }
  323.     public function removeProduct(Products $product): static
  324.     {
  325.         if ($this->products->removeElement($product)) {
  326.             // set the owning side to null (unless already changed)
  327.             if ($product->getUsers() === $this) {
  328.                 $product->setUsers(null);
  329.             }
  330.         }
  331.         return $this;
  332.     }
  333.     /********/
  334.     public function getImageUser(): ?string
  335.     {
  336.         return $this->imageUser;
  337.     }
  338.     public function setImageUser(string $imageUser): static
  339.     {
  340.         $this->imageUser $imageUser;
  341.         return $this;
  342.     }
  343.     /**
  344.      * @return Collection<int, Projects>
  345.      */
  346.     public function getProjects(): Collection
  347.     {
  348.         return $this->projects;
  349.     }
  350.     public function addProject(Projects $project): static
  351.     {
  352.         if (!$this->projects->contains($project)) {
  353.             $this->projects->add($project);
  354.             $project->setUsers($this);
  355.         }
  356.         return $this;
  357.     }
  358.     public function removeProject(Projects $project): static
  359.     {
  360.         if ($this->projects->removeElement($project)) {
  361.             // set the owning side to null (unless already changed)
  362.             if ($project->getUsers() === $this) {
  363.                 $project->setUsers(null);
  364.             }
  365.         }
  366.         return $this;
  367.     }
  368.     /**
  369.      * @return Collection<int, Immobiliers>
  370.      */
  371.     public function getImmobiliers(): Collection
  372.     {
  373.         return $this->immobiliers;
  374.     }
  375.     public function addImmobilier(Immobiliers $immobilier): static
  376.     {
  377.         if (!$this->immobiliers->contains($immobilier)) {
  378.             $this->immobiliers->add($immobilier);
  379.             $immobilier->setUsers($this);
  380.         }
  381.         return $this;
  382.     }
  383.     public function removeImmobilier(Immobiliers $immobilier): static
  384.     {
  385.         if ($this->immobiliers->removeElement($immobilier)) {
  386.             // set the owning side to null (unless already changed)
  387.             if ($immobilier->getUsers() === $this) {
  388.                 $immobilier->setUsers(null);
  389.             }
  390.         }
  391.         return $this;
  392.     }
  393.     /**
  394.      * @return Collection<int, Hebergements>
  395.      */
  396.     public function getHebergements(): Collection
  397.     {
  398.         return $this->hebergements;
  399.     }
  400.     public function addHebergement(Hebergements $hebergement): static
  401.     {
  402.         if (!$this->hebergements->contains($hebergement)) {
  403.             $this->hebergements->add($hebergement);
  404.             $hebergement->setUsers($this);
  405.         }
  406.         return $this;
  407.     }
  408.     public function removeHebergement(Hebergements $hebergement): static
  409.     {
  410.         if ($this->hebergements->removeElement($hebergement)) {
  411.             // set the owning side to null (unless already changed)
  412.             if ($hebergement->getUsers() === $this) {
  413.                 $hebergement->setUsers(null);
  414.             }
  415.         }
  416.         return $this;
  417.     }
  418.                     /*
  419.     public function getPhonePublic(): ?int
  420.     {
  421.         return $this->phonePublic;
  422.     }
  423.     public function setPhonePublic(int $phonePublic): static
  424.     {
  425.         $this->phonePublic = $phonePublic;
  426.         return $this;
  427.     }
  428.                             
  429.     public function getPhonePrivate(): ?int
  430.     {
  431.         return $this->phonePrivate;
  432.     }
  433.                         
  434.     public function setPhonePrivate(?int $phonePrivate): static
  435.     {
  436.         $this->phonePrivate = $phonePrivate;
  437.         return $this;
  438.     }
  439.                             */
  440.     public function getImageCouverture(): ?string
  441.     {
  442.         return $this->imageCouverture;
  443.     }
  444.     public function setImageCouverture(string $imageCouverture): static
  445.     {
  446.         $this->imageCouverture $imageCouverture;
  447.         return $this;
  448.     }
  449.     public function getJob(): ?string
  450.     {
  451.         return $this->job;
  452.     }
  453.     public function setJob(string $job): static
  454.     {
  455.         $this->job $job;
  456.         return $this;
  457.     }
  458.     public function getCountry(): ?string
  459.     {
  460.         return $this->country;
  461.     }
  462.     public function setCountry(string $country): static
  463.     {
  464.         $this->country $country;
  465.         return $this;
  466.     }
  467.     public function getEmailPhoneSecured(): ?string
  468.     {
  469.         return $this->emailPhoneSecured;
  470.     }
  471.     public function setEmailPhoneSecured(?string $emailPhoneSecured): static
  472.     {
  473.         $this->emailPhoneSecured $emailPhoneSecured;
  474.         return $this;
  475.     }
  476.     public function getPhonePublic(): ?string
  477.     {
  478.         return $this->phonePublic;
  479.     }
  480.     public function setPhonePublic(string $phonePublic): static
  481.     {
  482.         $this->phonePublic $phonePublic;
  483.         return $this;
  484.     }
  485.     public function getPhonePrivate(): ?string
  486.     {
  487.         return $this->phonePrivate;
  488.     }
  489.     public function setPhonePrivate(?string $phonePrivate): static
  490.     {
  491.         $this->phonePrivate $phonePrivate;
  492.         return $this;
  493.     }
  494.     /**
  495.      * @return Collection<int, Prestations>
  496.      */
  497.     public function getPrestations(): Collection
  498.     {
  499.         return $this->prestations;
  500.     }
  501.     public function addPrestation(Prestations $prestation): static
  502.     {
  503.         if (!$this->prestations->contains($prestation)) {
  504.             $this->prestations->add($prestation);
  505.             $prestation->setUsers($this);
  506.         }
  507.         return $this;
  508.     }
  509.     public function removePrestation(Prestations $prestation): static
  510.     {
  511.         if ($this->prestations->removeElement($prestation)) {
  512.             // set the owning side to null (unless already changed)
  513.             if ($prestation->getUsers() === $this) {
  514.                 $prestation->setUsers(null);
  515.             }
  516.         }
  517.         return $this;
  518.     }
  519.     public function isAutorisation(): ?bool
  520.     {
  521.         return $this->Autorisation;
  522.     }
  523.     public function setAutorisation(?bool $Autorisation): static
  524.     {
  525.         $this->Autorisation $Autorisation;
  526.         return $this;
  527.     }
  528.     /**
  529.      * @return Collection<int, Entreprises>
  530.      */
  531.     public function getEntreprises(): Collection
  532.     {
  533.         return $this->entreprises;
  534.     }
  535.     public function addEntreprise(Entreprises $entreprise): static
  536.     {
  537.         if (!$this->entreprises->contains($entreprise)) {
  538.             $this->entreprises->add($entreprise);
  539.             $entreprise->setUsers($this);
  540.         }
  541.         return $this;
  542.     }
  543.     public function removeEntreprise(Entreprises $entreprise): static
  544.     {
  545.         if ($this->entreprises->removeElement($entreprise)) {
  546.             // set the owning side to null (unless already changed)
  547.             if ($entreprise->getUsers() === $this) {
  548.                 $entreprise->setUsers(null);
  549.             }
  550.         }
  551.         return $this;
  552.     }
  553.     public function getSiteWeb(): ?string
  554.     {
  555.         return $this->siteWeb;
  556.     }
  557.     public function setSiteWeb(?string $siteWeb): static
  558.     {
  559.         $this->siteWeb $siteWeb;
  560.         return $this;
  561.     }
  562.     public function getMediaSocial1(): ?string
  563.     {
  564.         return $this->mediaSocial1;
  565.     }
  566.     public function setMediaSocial1(?string $mediaSocial1): static
  567.     {
  568.         $this->mediaSocial1 $mediaSocial1;
  569.         return $this;
  570.     }
  571.     public function getMediaSocial2(): ?string
  572.     {
  573.         return $this->mediaSocial2;
  574.     }
  575.     public function setMediaSocial2(?string $mediaSocial2): static
  576.     {
  577.         $this->mediaSocial2 $mediaSocial2;
  578.         return $this;
  579.     }
  580.     public function getMediaSocial3(): ?string
  581.     {
  582.         return $this->mediaSocial3;
  583.     }
  584.     public function setMediaSocial3(?string $mediaSocial3): static
  585.     {
  586.         $this->mediaSocial3 $mediaSocial3;
  587.         return $this;
  588.     }
  589.     public function getMediaSocial4(): ?string
  590.     {
  591.         return $this->mediaSocial4;
  592.     }
  593.     public function setMediaSocial4(?string $mediaSocial4): static
  594.     {
  595.         $this->mediaSocial4 $mediaSocial4;
  596.         return $this;
  597.     }
  598.     public function getMediaSocial5(): ?string
  599.     {
  600.         return $this->mediaSocial5;
  601.     }
  602.     public function setMediaSocial5(?string $mediaSocial5): static
  603.     {
  604.         $this->mediaSocial5 $mediaSocial5;
  605.         return $this;
  606.     }
  607.     public function isCreationEntreprise(): ?bool
  608.     {
  609.         return $this->creationEntreprise;
  610.     }
  611.     public function setCreationEntreprise(?bool $creationEntreprise): static
  612.     {
  613.         $this->creationEntreprise $creationEntreprise;
  614.         return $this;
  615.     }
  616.     public function isCreationHebergement(): ?bool
  617.     {
  618.         return $this->creationHebergement;
  619.     }
  620.     public function setCreationHebergement(?bool $creationHebergement): static
  621.     {
  622.         $this->creationHebergement $creationHebergement;
  623.         return $this;
  624.     }
  625.     public function getMediaSocialName1(): ?string
  626.     {
  627.         return $this->mediaSocialName1;
  628.     }
  629.     public function setMediaSocialName1(?string $mediaSocialName1): static
  630.     {
  631.         $this->mediaSocialName1 $mediaSocialName1;
  632.         return $this;
  633.     }
  634.     public function getMediaSocialName2(): ?string
  635.     {
  636.         return $this->mediaSocialName2;
  637.     }
  638.     public function setMediaSocialName2(?string $mediaSocialName2): static
  639.     {
  640.         $this->mediaSocialName2 $mediaSocialName2;
  641.         return $this;
  642.     }
  643.     public function getMediaSocialName3(): ?string
  644.     {
  645.         return $this->mediaSocialName3;
  646.     }
  647.     public function setMediaSocialName3(?string $mediaSocialName3): static
  648.     {
  649.         $this->mediaSocialName3 $mediaSocialName3;
  650.         return $this;
  651.     }
  652.     public function getMediaSocialName4(): ?string
  653.     {
  654.         return $this->mediaSocialName4;
  655.     }
  656.     public function setMediaSocialName4(?string $mediaSocialName4): static
  657.     {
  658.         $this->mediaSocialName4 $mediaSocialName4;
  659.         return $this;
  660.     }
  661.     public function getMediaSocialName5(): ?string
  662.     {
  663.         return $this->mediaSocialName5;
  664.     }
  665.     public function setMediaSocialName5(?string $mediaSocialName5): static
  666.     {
  667.         $this->mediaSocialName5 $mediaSocialName5;
  668.         return $this;
  669.     }
  670.     public function getCategoriesusers(): ?CategoriesUsers
  671.     {
  672.         return $this->categoriesusers;
  673.     }
  674.     public function setCategoriesusers(?CategoriesUsers $categoriesusers): static
  675.     {
  676.         $this->categoriesusers $categoriesusers;
  677.         return $this;
  678.     }
  679.     public function isVisibilitySearch(): ?bool
  680.     {
  681.         return $this->visibilitySearch;
  682.     }
  683.     public function setVisibilitySearch(?bool $visibilitySearch): static
  684.     {
  685.         $this->visibilitySearch $visibilitySearch;
  686.         return $this;
  687.     }
  688.     /**
  689.      * @return Collection<int, Emplois>
  690.      */
  691.     public function getEmplois(): Collection
  692.     {
  693.         return $this->emplois;
  694.     }
  695.     public function addEmploi(Emplois $emploi): static
  696.     {
  697.         if (!$this->emplois->contains($emploi)) {
  698.             $this->emplois->add($emploi);
  699.             $emploi->setUsers($this);
  700.         }
  701.         return $this;
  702.     }
  703.     public function removeEmploi(Emplois $emploi): static
  704.     {
  705.         if ($this->emplois->removeElement($emploi)) {
  706.             // set the owning side to null (unless already changed)
  707.             if ($emploi->getUsers() === $this) {
  708.                 $emploi->setUsers(null);
  709.             }
  710.         }
  711.         return $this;
  712.     }
  713.     /**
  714.      * @return Collection<int, Annonces>
  715.      */
  716.     public function getAnnonces(): Collection
  717.     {
  718.         return $this->annonces;
  719.     }
  720.     public function addAnnonce(Annonces $annonce): static
  721.     {
  722.         if (!$this->annonces->contains($annonce)) {
  723.             $this->annonces->add($annonce);
  724.             $annonce->setUsers($this);
  725.         }
  726.         return $this;
  727.     }
  728.     public function removeAnnonce(Annonces $annonce): static
  729.     {
  730.         if ($this->annonces->removeElement($annonce)) {
  731.             // set the owning side to null (unless already changed)
  732.             if ($annonce->getUsers() === $this) {
  733.                 $annonce->setUsers(null);
  734.             }
  735.         }
  736.         return $this;
  737.     }
  738.     public function isAccessCv(): ?bool
  739.     {
  740.         return $this->accessCv;
  741.     }
  742.     public function setAccessCv(?bool $accessCv): static
  743.     {
  744.         $this->accessCv $accessCv;
  745.         return $this;
  746.     }
  747.     public function isCreationAnnonce(): ?bool
  748.     {
  749.         return $this->creationAnnonce;
  750.     }
  751.     public function setCreationAnnonce(?bool $creationAnnonce): static
  752.     {
  753.         $this->creationAnnonce $creationAnnonce;
  754.         return $this;
  755.     }
  756.     public function isCreationEmploi(): ?bool
  757.     {
  758.         return $this->creationEmploi;
  759.     }
  760.     public function setCreationEmploi(?bool $creationEmploi): static
  761.     {
  762.         $this->creationEmploi $creationEmploi;
  763.         return $this;
  764.     }
  765.     /**
  766.      * @return Collection<int, Videos>
  767.      */
  768.     public function getVideos(): Collection
  769.     {
  770.         return $this->videos;
  771.     }
  772.     public function addVideo(Videos $video): static
  773.     {
  774.         if (!$this->videos->contains($video)) {
  775.             $this->videos->add($video);
  776.             $video->setUsers($this);
  777.         }
  778.         return $this;
  779.     }
  780.     public function removeVideo(Videos $video): static
  781.     {
  782.         if ($this->videos->removeElement($video)) {
  783.             // set the owning side to null (unless already changed)
  784.             if ($video->getUsers() === $this) {
  785.                 $video->setUsers(null);
  786.             }
  787.         }
  788.         return $this;
  789.     }
  790.     public function isCreationVideo(): ?bool
  791.     {
  792.         return $this->creationVideo;
  793.     }
  794.     public function setCreationVideo(bool $creationVideo): static
  795.     {
  796.         $this->creationVideo $creationVideo;
  797.         return $this;
  798.     }
  799.     /**
  800.      * @return Collection<int, Statistiques>
  801.      */
  802.     public function getStatistiques(): Collection
  803.     {
  804.         return $this->statistiques;
  805.     }
  806.     public function addStatistique(Statistiques $statistique): static
  807.     {
  808.         if (!$this->statistiques->contains($statistique)) {
  809.             $this->statistiques->add($statistique);
  810.             $statistique->setUsers($this);
  811.         }
  812.         return $this;
  813.     }
  814.     public function removeStatistique(Statistiques $statistique): static
  815.     {
  816.         if ($this->statistiques->removeElement($statistique)) {
  817.             // set the owning side to null (unless already changed)
  818.             if ($statistique->getUsers() === $this) {
  819.                 $statistique->setUsers(null);
  820.             }
  821.         }
  822.         return $this;
  823.     }
  824.     public function isHomeAutorisation(): ?bool
  825.     {
  826.         return $this->homeAutorisation;
  827.     }
  828.     public function setHomeAutorisation(?bool $homeAutorisation): static
  829.     {
  830.         $this->homeAutorisation $homeAutorisation;
  831.         return $this;
  832.     }
  833.     public function isBannerAutorisation(): ?bool
  834.     {
  835.         return $this->bannerAutorisation;
  836.     }
  837.     public function setBannerAutorisation(?bool $bannerAutorisation): static
  838.     {
  839.         $this->bannerAutorisation $bannerAutorisation;
  840.         return $this;
  841.     }
  842.     public function isPublicityAutorisation(): ?bool
  843.     {
  844.         return $this->publicityAutorisation;
  845.     }
  846.     public function setPublicityAutorisation(?bool $publicityAutorisation): static
  847.     {
  848.         $this->publicityAutorisation $publicityAutorisation;
  849.         return $this;
  850.     }
  851. }