src/Entity/Devis.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DevisRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DevisRepository::class)
  7.  */
  8. class Devis
  9. {
  10.     public const NOTES = [
  11.         'Termes & conditions au verso',
  12.         'Garantie 12 mois',
  13.         'Paiement comptant via Orange Money',
  14.         'Be500 inclus (50 sms gratuit - 2h appel gratuit - 1Go offert)',
  15.         'Disponible en stock sauf vente entre temps',
  16.         'Validité : 2 mois'
  17.     ];
  18.     /**
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $numero;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $titre;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $montant;
  36.     /**
  37.      * @ORM\Column(type="text", nullable=true)
  38.      */
  39.     private $description;
  40.     /**
  41.      * @ORM\Column(type="array", nullable=true)
  42.      */
  43.     private $piece_jointe = [];
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Client::class, inversedBy="devis")
  46.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  47.      */
  48.     private $client;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity=Produit::class, inversedBy="devis")
  51.      * @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
  52.      */
  53.     private $produit;
  54.     /**
  55.      * @ORM\Column(type="date")
  56.      */
  57.     private $date;
  58.     /**
  59.      * @ORM\Column(type="text", nullable=true)
  60.      */
  61.     private $notePublique;
  62.     /**
  63.      * @ORM\Column(type="text", nullable=true)
  64.      */
  65.     private $notePrivee;
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getNumero(): ?string
  71.     {
  72.         return $this->numero;
  73.     }
  74.     public function setNumero(string $numero): self
  75.     {
  76.         $this->numero $numero;
  77.         return $this;
  78.     }
  79.     public function getTitre(): ?string
  80.     {
  81.         return $this->titre;
  82.     }
  83.     public function setTitre(?string $titre): self
  84.     {
  85.         $this->titre $titre;
  86.         return $this;
  87.     }
  88.     public function getMontant(): ?string
  89.     {
  90.         return $this->montant;
  91.     }
  92.     public function setMontant(string $montant): self
  93.     {
  94.         $this->montant $montant;
  95.         return $this;
  96.     }
  97.     public function getDescription(): ?string
  98.     {
  99.         return $this->description;
  100.     }
  101.     public function setDescription(?string $description): self
  102.     {
  103.         $this->description $description;
  104.         return $this;
  105.     }
  106.     public function getPieceJointe(): ?array
  107.     {
  108.         return $this->piece_jointe;
  109.     }
  110.     public function setPieceJointe(?array $piece_jointe): self
  111.     {
  112.         $this->piece_jointe $piece_jointe;
  113.         return $this;
  114.     }
  115.     public function getClient(): ?Client
  116.     {
  117.         return $this->client;
  118.     }
  119.     public function setClient(?Client $client): self
  120.     {
  121.         $this->client $client;
  122.         return $this;
  123.     }
  124.     public function getProduit(): ?Produit
  125.     {
  126.         return $this->produit;
  127.     }
  128.     public function setProduit(?Produit $produit): self
  129.     {
  130.         $this->produit $produit;
  131.         return $this;
  132.     }
  133.     public function getDate(): ?\DateTimeInterface
  134.     {
  135.         return $this->date;
  136.     }
  137.     public function setDate(\DateTimeInterface $date): self
  138.     {
  139.         $this->date $date;
  140.         return $this;
  141.     }
  142.     public function getNotePublique(): ?string
  143.     {
  144.         return $this->notePublique;
  145.     }
  146.     public function setNotePublique(?string $notePublique): self
  147.     {
  148.         $this->notePublique $notePublique;
  149.         return $this;
  150.     }
  151.     public function getNotePrivee(): ?string
  152.     {
  153.         return $this->notePrivee;
  154.     }
  155.     public function setNotePrivee(?string $notePrivee): self
  156.     {
  157.         $this->notePrivee $notePrivee;
  158.         return $this;
  159.     }
  160. }