src/Entity/Projet.php line 11
<?php
namespace App\Entity;
use App\Repository\ProjetRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProjetRepository::class)]
class Projet
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $titre = null;
#[ORM\Column(length: 255)]
private ?string $client = null;
#[ORM\Column(length: 2550)]
private ?string $description = null;
#[ORM\Column(length: 255)]
private ?string $imagePresentation = null;
#[ORM\Column(length: 255)]
private ?string $image2 = null;
#[ORM\Column(length: 255)]
private ?string $image3 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $image4 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $image5 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $image6 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $siteWeb = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $reseaux = null;
#[ORM\ManyToMany(targetEntity: Categorie::class, inversedBy: 'tags', cascade: ['persist'])]
private Collection $tag;
#[ORM\Column(length: 12)]
private ?string $couleurs = null;
#[ORM\Column(length: 2550)]
private ?string $description2 = null;
#[ORM\Column(length: 255)]
private ?string $couleurBack = null;
#[ORM\Column(length: 255)]
private ?string $couleurBackText = null;
public function __construct()
{
$this->tag = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getClient(): ?string
{
return $this->client;
}
public function setClient(string $client): self
{
$this->client = $client;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getImagePresentation(): ?string
{
return $this->imagePresentation;
}
public function setImagePresentation(string $imagePresentation): self
{
$this->imagePresentation = $imagePresentation;
return $this;
}
public function getImage2(): ?string
{
return $this->image2;
}
public function setImage2(string $image2): self
{
$this->image2 = $image2;
return $this;
}
public function getImage3(): ?string
{
return $this->image3;
}
public function setImage3(string $image3): self
{
$this->image3 = $image3;
return $this;
}
public function getImage4(): ?string
{
return $this->image4;
}
public function setImage4(?string $image4): self
{
$this->image4 = $image4;
return $this;
}
public function getImage5(): ?string
{
return $this->image5;
}
public function setImage5(?string $image5): self
{
$this->image5 = $image5;
return $this;
}
public function getImage6(): ?string
{
return $this->image6;
}
public function setImage6(?string $image6): self
{
$this->image6 = $image6;
return $this;
}
public function getSiteWeb(): ?string
{
return $this->siteWeb;
}
public function setSiteWeb(?string $siteWeb): self
{
$this->siteWeb = $siteWeb;
return $this;
}
public function getReseaux(): ?string
{
return $this->reseaux;
}
public function setReseaux(?string $reseaux): self
{
$this->reseaux = $reseaux;
return $this;
}
/**
* @return Collection<int, Categorie>
*/
public function getTag(): Collection
{
return $this->tag;
}
public function addTag(Categorie $tag): self
{
if (!$this->tag->contains($tag)) {
$this->tag->add($tag);
$tag->addTag($this);
}
return $this;
}
public function removeTag(Categorie $tag): self
{
if ($this->tag->removeElement($tag)) {
$tag->removeTag($this);
}
return $this;
}
public function getCouleurs(): ?string
{
return $this->couleurs;
}
public function setCouleurs(string $couleurs): self
{
$this->couleurs = $couleurs;
return $this;
}
public function getDescription2(): ?string
{
return $this->description2;
}
public function setDescription2(string $description2): self
{
$this->description2 = $description2;
return $this;
}
public function getCouleurBack(): ?string
{
return $this->couleurBack;
}
public function setCouleurBack(string $couleurBack): self
{
$this->couleurBack = $couleurBack;
return $this;
}
public function getCouleurBackText(): ?string
{
return $this->couleurBackText;
}
public function setCouleurBackText(string $couleurBackText): self
{
$this->couleurBackText = $couleurBackText;
return $this;
}
}