<?php
namespace App\Entity;
use App\Repository\DemandeRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DemandeRepository::class)
*/
class Demande
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $typeDemande;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $typeProduit;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $annonce;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $quantite;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="demandes")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=Demandeurs::class, inversedBy="demandes",cascade={"persist"})
*/
private $demandeur;
public function getId(): ?int
{
return $this->id;
}
public function getTypeDemande(): ?string
{
return $this->typeDemande;
}
public function setTypeDemande(?string $typeDemande): self
{
$this->typeDemande = $typeDemande;
return $this;
}
public function getTypeProduit(): ?string
{
return $this->typeProduit;
}
public function setTypeProduit(?string $typeProduit): self
{
$this->typeProduit = $typeProduit;
return $this;
}
public function getAnnonce(): ?string
{
return $this->annonce;
}
public function setAnnonce(?string $annonce): self
{
$this->annonce = $annonce;
return $this;
}
public function getQuantite(): ?int
{
return $this->quantite;
}
public function setQuantite(?int $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getDemandeur(): ?Demandeurs
{
return $this->demandeur;
}
public function setDemandeur(?Demandeurs $demandeur): self
{
$this->demandeur = $demandeur;
return $this;
}
}