src/Entity/AnnonceCompany.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AnnonceCompanyRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=AnnonceCompanyRepository::class)
  9.  */
  10. class AnnonceCompany
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $titre;
  22.     /**
  23.      * @ORM\Column(type="text", nullable=true)
  24.      */
  25.     private $description;
  26.     /**
  27.      * @ORM\Column(type="datetime", nullable=true)
  28.      */
  29.     private $createdAt;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="annonceCompanies")
  32.      */
  33.     private $companys;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="annonceCompanies")
  36.      */
  37.     private $products;
  38.     /**
  39.      * @ORM\Column(type="string", length=255)
  40.      */
  41.     private $type;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=CategoryAnnoncePrestataire::class, inversedBy="annonceCompanys")
  44.      */
  45.     private $categoryAnnoncePrestataire;
  46.     
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getTitre(): ?string
  52.     {
  53.         return $this->titre;
  54.     }
  55.     public function setTitre(string $titre): self
  56.     {
  57.         $this->titre $titre;
  58.         return $this;
  59.     }
  60.     public function getDescription(): ?string
  61.     {
  62.         return $this->description;
  63.     }
  64.     public function setDescription(string $description): self
  65.     {
  66.         $this->description $description;
  67.         return $this;
  68.     }
  69.     public function getCreatedAt(): ?\DateTimeInterface
  70.     {
  71.         return $this->createdAt;
  72.     }
  73.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  74.     {
  75.         $this->createdAt $createdAt;
  76.         return $this;
  77.     }
  78.     public function getCompanys(): ?Company
  79.     {
  80.         return $this->companys;
  81.     }
  82.     public function setCompanys(?Company $companys): self
  83.     {
  84.         $this->companys $companys;
  85.         return $this;
  86.     }
  87.     public function getProducts(): ?Product
  88.     {
  89.         return $this->products;
  90.     }
  91.     public function setProducts(?Product $products): self
  92.     {
  93.         $this->products $products;
  94.         return $this;
  95.     }
  96.     public function getType(): ?string
  97.     {
  98.         return $this->type;
  99.     }
  100.     public function setType(string $type): self
  101.     {
  102.         $this->type $type;
  103.         return $this;
  104.     }
  105.     public function getCategoryAnnoncePrestataire(): ?CategoryAnnoncePrestataire
  106.     {
  107.         return $this->categoryAnnoncePrestataire;
  108.     }
  109.     public function setCategoryAnnoncePrestataire(?CategoryAnnoncePrestataire $categoryAnnoncePrestataire): self
  110.     {
  111.         $this->categoryAnnoncePrestataire $categoryAnnoncePrestataire;
  112.         return $this;
  113.     }
  114.     
  115. }