src/Entity/FactureProposition.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FacturePropositionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFacturePropositionRepository::class)]
  7. class FactureProposition
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(type'string'length255nullabletrue)]
  14.     private $reference;
  15.     #[ORM\Column(type'string'length255nullabletrue)]
  16.     private $lienVersPiece;
  17.     #[ORM\Column(type'decimal'precision12scale2nullabletrue)]
  18.     private $montant;
  19.     #[ORM\ManyToOne(targetEntityProposition::class, inversedBy'factures'cascade: ['persist'])]
  20.     private $proposition;
  21.     public function __toString()
  22.     {
  23.         $libelle=$this->getReference();
  24.         if(!$libelle){ $libelle="non défini";}
  25.         return $libelle;
  26.     }
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getReference(): ?string
  32.     {
  33.         return $this->reference;
  34.     }
  35.     public function setReference(?string $reference): self
  36.     {
  37.         $this->reference $reference;
  38.         return $this;
  39.     }
  40.     public function getLienVersPiece(): ?string
  41.     {
  42.         return $this->lienVersPiece;
  43.     }
  44.     public function setLienVersPiece(?string $lienVersPiece): self
  45.     {
  46.         $this->lienVersPiece $lienVersPiece;
  47.         return $this;
  48.     }
  49.     public function getMontant(): ?string
  50.     {
  51.         return $this->montant;
  52.     }
  53.     public function setMontant(?string $montant): self
  54.     {
  55.         $this->montant $montant;
  56.         return $this;
  57.     }
  58.     public function getProposition(): ?Proposition
  59.     {
  60.         return $this->proposition;
  61.     }
  62.     public function setProposition(?Proposition $proposition): self
  63.     {
  64.         $this->proposition $proposition;
  65.         return $this;
  66.     }
  67. }