<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\BFPaymentIntentAdminRepository")
*/
class BFPaymentIntentAdmin
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $stripeid;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nameclient;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $entityclient;
/**
* @ORM\Column(type="integer")
*/
private $price;
/**
* @ORM\Column(type="text")
*/
private $description;
/**
* @ORM\Column(type="datetime")
*/
private $creationdate;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $successdate;
public function __construct()
{
$this->creationdate= new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getStripeid(): ?string
{
return $this->stripeid;
}
public function setStripeid(?string $stripeid): self
{
$this->stripeid = $stripeid;
return $this;
}
public function getNameclient(): ?string
{
return $this->nameclient;
}
public function setNameclient(?string $nameclient): self
{
$this->nameclient = $nameclient;
return $this;
}
public function getEntityclient(): ?string
{
return $this->entityclient;
}
public function setEntityclient(?string $entityclient): self
{
$this->entityclient = $entityclient;
return $this;
}
public function getPrice(): ?int
{
return $this->price;
}
public function setPrice(int $price): self
{
$this->price = $price;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getCreationdate(): ?\DateTimeInterface
{
return $this->creationdate;
}
public function setCreationdate(\DateTimeInterface $creationdate): self
{
$this->creationdate = $creationdate;
return $this;
}
public function getSuccessdate(): ?\DateTimeInterface
{
return $this->successdate;
}
public function setSuccessdate(?\DateTimeInterface $successdate): self
{
$this->successdate = $successdate;
return $this;
}
public function getDisplayprice() : ?float
{
return $this->getPrice()/100;
}
}