<?php
namespace App\Entity;
use App\Repository\AchatIctocoinRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AchatIctocoinRepository::class)
*/
class AchatIctocoin
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float")
*/
private $montant;
/**
* @ORM\Column(type="string", length=255)
*/
private $methode;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $token;
/**
* @ORM\Column(type="string", length=255)
*/
private $currency;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $created_at;
/**
* @ORM\ManyToOne(targetEntity=IctusPharmacie::class, inversedBy="achatIctocoins")
* @ORM\JoinColumn(nullable=false)
*/
private $pharmacie;
/**
* @ORM\Column(type="float")
*/
private $ictocoin;
/**
* @ORM\ManyToOne(targetEntity=EtatAchatIcto::class, inversedBy="achatIctocoins")
* @ORM\JoinColumn(nullable=false)
*/
private $etat;
public function __construct()
{
$this->created_at = new \DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(float $montant): self
{
$this->montant = $montant;
return $this;
}
public function getMethode(): ?string
{
return $this->methode;
}
public function setMethode(string $methode): self
{
$this->methode = $methode;
return $this;
}
public function getToken(): ?string
{
return $this->token;
}
public function setToken(?string $token): self
{
$this->token = $token;
return $this;
}
public function getCurrency(): ?string
{
return $this->currency;
}
public function setCurrency(string $currency): self
{
$this->currency = $currency;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeImmutable $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getPharmacie(): ?IctusPharmacie
{
return $this->pharmacie;
}
public function setPharmacie(?IctusPharmacie $pharmacie): self
{
$this->pharmacie = $pharmacie;
return $this;
}
public function getIctocoin(): ?float
{
return $this->ictocoin;
}
public function setIctocoin(float $ictocoin): self
{
$this->ictocoin = $ictocoin;
return $this;
}
public function getEtat(): ?EtatAchatIcto
{
return $this->etat;
}
public function setEtat(?EtatAchatIcto $etat): self
{
$this->etat = $etat;
return $this;
}
}