<?php
namespace App\Entity;
use App\Repository\CertyousRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
#[ORM\Entity(repositoryClass: CertyousRepository::class)]
#[ORM\Table(name: "certyous")]
class Certyous
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: "string", nullable: true)]
private ?string $theme = null;
#[ORM\Column(type: "string", nullable: true)]
private ?string $slug = null;
#[ORM\Column(type: "string", nullable: true)]
private ?string $type = null;
#[ORM\Column(type: "string", nullable: true)]
private ?string $duree = null;
#[ORM\Column(type: "string", nullable: true, options: ['default' => '0'])]
private ?string $prixpresentiel = null;
#[ORM\Column(type: "string", nullable: true, options: ['default' => '0'])]
private ?string $prixvirtuelle = null;
#[ORM\Column(length: 10, nullable: true, options: ['default' => 'EURO'])]
private ?string $devise = 'EURO';
#[ORM\Column(length: 10)]
private ?int $adminsid;
#[ORM\Column(type: "datetime", nullable: true, options: ['default' => 'CURRENT_TIMESTAMP'])]
private ?\DateTimeInterface $createdat = null;
#[ORM\Column(type: "datetime", nullable: true, options: ['default' => 'CURRENT_TIMESTAMP'])]
private ?\DateTimeInterface $updatedat = null;
public function __construct()
{
$this->createdat = new \DateTime();
$this->updatedat = new \DateTime();
}
public function getId(): ?int{return $this->id;}
// public function getCatid(): ?Categories { return $this->catid; }
// public function setCatid(?Categories $catid): static { $this->catid = $catid; return $this; }
public function getTheme(): ?String{return $this->theme;}
public function setTheme(?String $theme): self{$this->theme = $theme;return $this;}
public function getSlug(): ?String{return $this->slug;}
public function setSlug(?String $slug): self{$this->slug = $slug;return $this;}
public function getType(): ?String{ return $this->type;}
public function setType(?String $type): self{$this->type = $type;return $this;}
public function getDuree(): ?String{ return $this->duree;}
public function setDuree(?String $duree): self { $this->duree = $duree;return $this;}
public function getPrixpresentiel(): ?String{ return $this->prixpresentiel;}
public function setPrixpresentiel(?String $prixpresentiel): self { $this->prixpresentiel = $prixpresentiel;return $this;}
public function getPrixvirtuelle(): ?string{return $this->prixvirtuelle;}
public function setPrixvirtuelle(?string $prixvirtuelle): self{$this->prixvirtuelle = $prixvirtuelle;return $this;}
public function getDevise(): ?string{return $this->devise;}
public function setDevise(?string $devise): self{$this->devise = $devise;return $this;}
public function getAdminsId(): ?int{return $this->adminsid;}
public function setAdminsId(int $adminsid): static{$this->adminsid = $adminsid;return $this;}
public function getCreatedAt(): ?\DateTimeInterface{return $this->createdat;}
public function setCreatedAt(?\DateTimeInterface $createdat): self {$this->createdat = $createdat;return $this;}
public function getUpdatedAt(): ?\DateTimeInterface{return $this->updatedat;}
public function setUpdatedAt(?\DateTimeInterface $updatedat): self {$this->updatedat = $updatedat;return $this;}
}