src/Entity/PaiementRecette.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\ORM\Mapping\Entity;
  5. use Doctrine\ORM\Mapping\Table;
  6. use Doctrine\ORM\Mapping\Id;
  7. use Doctrine\ORM\Mapping\GeneratedValue;
  8. use Doctrine\ORM\Mapping\Column;
  9. use Doctrine\ORM\Mapping\ManyToOne;
  10. #[Entity]
  11. #[Table(name"paiement_recette")]
  12. class PaiementRecette
  13. {
  14.     #[Id]
  15.     #[GeneratedValue]
  16.     #[Column(type"integer")]
  17.     private int $id;
  18.     #[ManyToOne(targetEntityRecette::class, inversedBy"paiements")]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private Recette $recette;
  21.     #[ManyToOne(targetEntityTypePaiement::class)]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private TypePaiement $typePaiement;
  24.     #[Column(type"decimal"scale2)]
  25.     private float $sommePayee;
  26.     public function getId(): int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getRecette(): Recette
  31.     {
  32.         return $this->recette;
  33.     }
  34.     public function setRecette(Recette $recette): void
  35.     {
  36.         $this->recette $recette;
  37.     }
  38.     public function getTypePaiement(): TypePaiement
  39.     {
  40.         return $this->typePaiement;
  41.     }
  42.     public function setTypePaiement(TypePaiement $typePaiement): void
  43.     {
  44.         $this->typePaiement $typePaiement;
  45.     }
  46.     public function getSommePayee(): float
  47.     {
  48.         return $this->sommePayee;
  49.     }
  50.     public function setSommePayee(float $sommePayee): void
  51.     {
  52.         $this->sommePayee $sommePayee;
  53.     }
  54. }