src/Entity/AchatIctocoin.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AchatIctocoinRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=AchatIctocoinRepository::class)
  7.  */
  8. class AchatIctocoin
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="float")
  18.      */
  19.     private $montant;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $methode;
  24.     /**
  25.      * @ORM\Column(type="text", nullable=true)
  26.      */
  27.     private $token;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $currency;
  32.     /**
  33.      * @ORM\Column(type="datetime_immutable")
  34.      */
  35.     private $created_at;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=IctusPharmacie::class, inversedBy="achatIctocoins")
  38.      * @ORM\JoinColumn(nullable=false)
  39.      */
  40.     private $pharmacie;
  41.     /**
  42.      * @ORM\Column(type="float")
  43.      */
  44.     private $ictocoin;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity=EtatAchatIcto::class, inversedBy="achatIctocoins")
  47.      * @ORM\JoinColumn(nullable=false)
  48.      */
  49.     private $etat;
  50.     public function __construct()
  51.     {
  52.         $this->created_at = new \DateTimeImmutable();
  53.     }
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getMontant(): ?float
  59.     {
  60.         return $this->montant;
  61.     }
  62.     public function setMontant(float $montant): self
  63.     {
  64.         $this->montant $montant;
  65.         return $this;
  66.     }
  67.     public function getMethode(): ?string
  68.     {
  69.         return $this->methode;
  70.     }
  71.     public function setMethode(string $methode): self
  72.     {
  73.         $this->methode $methode;
  74.         return $this;
  75.     }
  76.     public function getToken(): ?string
  77.     {
  78.         return $this->token;
  79.     }
  80.     public function setToken(?string $token): self
  81.     {
  82.         $this->token $token;
  83.         return $this;
  84.     }
  85.     public function getCurrency(): ?string
  86.     {
  87.         return $this->currency;
  88.     }
  89.     public function setCurrency(string $currency): self
  90.     {
  91.         $this->currency $currency;
  92.         return $this;
  93.     }
  94.     public function getCreatedAt(): ?\DateTimeImmutable
  95.     {
  96.         return $this->created_at;
  97.     }
  98.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  99.     {
  100.         $this->created_at $created_at;
  101.         return $this;
  102.     }
  103.     public function getPharmacie(): ?IctusPharmacie
  104.     {
  105.         return $this->pharmacie;
  106.     }
  107.     public function setPharmacie(?IctusPharmacie $pharmacie): self
  108.     {
  109.         $this->pharmacie $pharmacie;
  110.         return $this;
  111.     }
  112.     public function getIctocoin(): ?float
  113.     {
  114.         return $this->ictocoin;
  115.     }
  116.     public function setIctocoin(float $ictocoin): self
  117.     {
  118.         $this->ictocoin $ictocoin;
  119.         return $this;
  120.     }
  121.     public function getEtat(): ?EtatAchatIcto
  122.     {
  123.         return $this->etat;
  124.     }
  125.     public function setEtat(?EtatAchatIcto $etat): self
  126.     {
  127.         $this->etat $etat;
  128.         return $this;
  129.     }
  130. }