<?php
namespace App\Entity;
use App\Repository\AnnonceCompanyRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AnnonceCompanyRepository::class)
*/
class AnnonceCompany
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $titre;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="annonceCompanies")
*/
private $companys;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="annonceCompanies")
*/
private $products;
/**
* @ORM\Column(type="string", length=255)
*/
private $type;
/**
* @ORM\ManyToOne(targetEntity=CategoryAnnoncePrestataire::class, inversedBy="annonceCompanys")
*/
private $categoryAnnoncePrestataire;
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 getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCompanys(): ?Company
{
return $this->companys;
}
public function setCompanys(?Company $companys): self
{
$this->companys = $companys;
return $this;
}
public function getProducts(): ?Product
{
return $this->products;
}
public function setProducts(?Product $products): self
{
$this->products = $products;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getCategoryAnnoncePrestataire(): ?CategoryAnnoncePrestataire
{
return $this->categoryAnnoncePrestataire;
}
public function setCategoryAnnoncePrestataire(?CategoryAnnoncePrestataire $categoryAnnoncePrestataire): self
{
$this->categoryAnnoncePrestataire = $categoryAnnoncePrestataire;
return $this;
}
}