src/Entity/HistoriqueTransactionFreelance.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HistoriqueTransactionFreelanceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=HistoriqueTransactionFreelanceRepository::class)
  7.  * @ORM\Table(name="historique_transaction_freelance")
  8.  */
  9. class HistoriqueTransactionFreelance
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=UserPlatform::class)
  19.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  20.      */
  21.     private $freelance;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Product::class)
  24.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  25.      */
  26.     private $produit;
  27.     /**
  28.      * true = entrĂ©e / false = sortie
  29.      * 
  30.      * @ORM\Column(type="boolean")
  31.      */
  32.     private $type;
  33.     /**
  34.      * @ORM\Column(type="integer")
  35.      */
  36.     private $quantite;
  37.     /**
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private $dateTransaction;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getFreelance(): ?UserPlatform
  46.     {
  47.         return $this->freelance;
  48.     }
  49.     public function setFreelance(?UserPlatform $freelance): self
  50.     {
  51.         $this->freelance = $freelance;
  52.         return $this;
  53.     }
  54.     public function getProduit(): ?Product
  55.     {
  56.         return $this->produit;
  57.     }
  58.     public function setProduit(?Product $produit): self
  59.     {
  60.         $this->produit = $produit;
  61.         return $this;
  62.     }
  63.     public function getType(): ?bool
  64.     {
  65.         return $this->type;
  66.     }
  67.     public function setType(bool $type): self
  68.     {
  69.         $this->type = $type;
  70.         return $this;
  71.     }
  72.     public function getQuantite(): ?int
  73.     {
  74.         return $this->quantite;
  75.     }
  76.     public function setQuantite(int $quantite): self
  77.     {
  78.         $this->quantite = $quantite;
  79.         return $this;
  80.     }
  81.     public function getDateTransaction(): ?\DateTimeInterface
  82.     {
  83.         return $this->dateTransaction;
  84.     }
  85.     public function setDateTransaction(\DateTimeInterface $dateTransaction): self
  86.     {
  87.         $this->dateTransaction = $dateTransaction;
  88.         return $this;
  89.     }
  90. }