<?php
namespace App\Entity;
use App\Repository\RechargeRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RechargeRepository::class)]
class Recharge
{
use TimestampableEntityTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $type = null;
#[ORM\Column]
private ?float $montant = null;
#[ORM\Column(length: 255)]
private ?string $devise = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $code1 = null;
public function getId(): ?int
{
return $this->id;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): static
{
$this->type = $type;
return $this;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(float $montant): static
{
$this->montant = $montant;
return $this;
}
public function getDevise(): ?string
{
return $this->devise;
}
public function setDevise(string $devise): static
{
$this->devise = $devise;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): static
{
$this->email = $email;
return $this;
}
public function getCode1(): ?string
{
return $this->code1;
}
public function setCode1(?string $code1): static
{
$this->code1 = $code1;
return $this;
}
}