src/Entity/Projet.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjetRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassProjetRepository::class)]
  8. class Projet
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $titre null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $client null;
  18.     #[ORM\Column(length2550)]
  19.     private ?string $description null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $imagePresentation null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $image2 null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $image3 null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $image4 null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $image5 null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $image6 null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $siteWeb null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $reseaux null;
  36.     #[ORM\ManyToMany(targetEntityCategorie::class, inversedBy'tags'cascade: ['persist'])]
  37.     private Collection $tag;
  38.     #[ORM\Column(length12)]
  39.     private ?string $couleurs null;
  40.     #[ORM\Column(length2550)]
  41.     private ?string $description2 null;
  42.     #[ORM\Column(length255)]
  43.     private ?string $couleurBack null;
  44.     #[ORM\Column(length255)]
  45.     private ?string $couleurBackText null;
  46.     public function __construct()
  47.     {
  48.         $this->tag = new ArrayCollection();
  49.     }
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getTitre(): ?string
  55.     {
  56.         return $this->titre;
  57.     }
  58.     public function setTitre(string $titre): self
  59.     {
  60.         $this->titre $titre;
  61.         return $this;
  62.     }
  63.     public function getClient(): ?string
  64.     {
  65.         return $this->client;
  66.     }
  67.     public function setClient(string $client): self
  68.     {
  69.         $this->client $client;
  70.         return $this;
  71.     }
  72.     public function getDescription(): ?string
  73.     {
  74.         return $this->description;
  75.     }
  76.     public function setDescription(string $description): self
  77.     {
  78.         $this->description $description;
  79.         return $this;
  80.     }
  81.     public function getImagePresentation(): ?string
  82.     {
  83.         return $this->imagePresentation;
  84.     }
  85.     public function setImagePresentation(string $imagePresentation): self
  86.     {
  87.         $this->imagePresentation $imagePresentation;
  88.         return $this;
  89.     }
  90.     public function getImage2(): ?string
  91.     {
  92.         return $this->image2;
  93.     }
  94.     public function setImage2(string $image2): self
  95.     {
  96.         $this->image2 $image2;
  97.         return $this;
  98.     }
  99.     public function getImage3(): ?string
  100.     {
  101.         return $this->image3;
  102.     }
  103.     public function setImage3(string $image3): self
  104.     {
  105.         $this->image3 $image3;
  106.         return $this;
  107.     }
  108.     public function getImage4(): ?string
  109.     {
  110.         return $this->image4;
  111.     }
  112.     public function setImage4(?string $image4): self
  113.     {
  114.         $this->image4 $image4;
  115.         return $this;
  116.     }
  117.     public function getImage5(): ?string
  118.     {
  119.         return $this->image5;
  120.     }
  121.     public function setImage5(?string $image5): self
  122.     {
  123.         $this->image5 $image5;
  124.         return $this;
  125.     }
  126.     public function getImage6(): ?string
  127.     {
  128.         return $this->image6;
  129.     }
  130.     public function setImage6(?string $image6): self
  131.     {
  132.         $this->image6 $image6;
  133.         return $this;
  134.     }
  135.     public function getSiteWeb(): ?string
  136.     {
  137.         return $this->siteWeb;
  138.     }
  139.     public function setSiteWeb(?string $siteWeb): self
  140.     {
  141.         $this->siteWeb $siteWeb;
  142.         return $this;
  143.     }
  144.     public function getReseaux(): ?string
  145.     {
  146.         return $this->reseaux;
  147.     }
  148.     public function setReseaux(?string $reseaux): self
  149.     {
  150.         $this->reseaux $reseaux;
  151.         return $this;
  152.     }
  153.     /**
  154.      * @return Collection<int, Categorie>
  155.      */
  156.     public function getTag(): Collection
  157.     {
  158.         return $this->tag;
  159.     }
  160.     public function addTag(Categorie $tag): self
  161.     {
  162.         if (!$this->tag->contains($tag)) {
  163.             $this->tag->add($tag);
  164.             $tag->addTag($this);
  165.         }
  166.         return $this;
  167.     }
  168.     public function removeTag(Categorie $tag): self
  169.     {
  170.         if ($this->tag->removeElement($tag)) {
  171.             $tag->removeTag($this);
  172.         }
  173.         return $this;
  174.     }
  175.     public function getCouleurs(): ?string
  176.     {
  177.         return $this->couleurs;
  178.     }
  179.     public function setCouleurs(string $couleurs): self
  180.     {
  181.         $this->couleurs $couleurs;
  182.         return $this;
  183.     }
  184.     public function getDescription2(): ?string
  185.     {
  186.         return $this->description2;
  187.     }
  188.     public function setDescription2(string $description2): self
  189.     {
  190.         $this->description2 $description2;
  191.         return $this;
  192.     }
  193.     public function getCouleurBack(): ?string
  194.     {
  195.         return $this->couleurBack;
  196.     }
  197.     public function setCouleurBack(string $couleurBack): self
  198.     {
  199.         $this->couleurBack $couleurBack;
  200.         return $this;
  201.     }
  202.     public function getCouleurBackText(): ?string
  203.     {
  204.         return $this->couleurBackText;
  205.     }
  206.     public function setCouleurBackText(string $couleurBackText): self
  207.     {
  208.         $this->couleurBackText $couleurBackText;
  209.         return $this;
  210.     }
  211.     
  212. }