<?php
declare(strict_types=1);
namespace App\Entity\Report;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(
* name="customer_data",
* indexes={
*
* @ORM\Index(name="idx_customer_data_password", columns={"password"}),
* @ORM\Index(name="idx_customer_data_postcode", columns={"postcode"}),
* @ORM\Index(name="idx_customer_data_iso_vat_number", columns={"iso_vat_number"}),
* @ORM\Index(name="idx_customer_data_vat_number", columns={"vat_number"}),
* @ORM\Index(name="idx_customer_data_stripe_reference", columns={"stripe_reference"}),
* @ORM\Index(name="idx_customer_data_fraudster", columns={"fraudster"}),
* @ORM\Index(name="idx_customer_data_deactivated", columns={"deactivated"})
* },
* uniqueConstraints={
*
* @ORM\UniqueConstraint(name="unique_customer_data_customer_id", columns={"customer_id"})
* }
* )
*
* @ORM\Entity(repositoryClass="App\Repository\Report\CustomerDataRepository")
*/
class CustomerData
{
/**
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @ORM\Column(type="integer", name="customer_id", nullable=false)
*/
private int $customerId;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private ?string $password = null;
/**
* @ORM\Column(type="string", length=12, nullable=true)
*/
private ?string $postcode = null;
/**
* @ORM\Column(type="string", length=3, nullable=true, name="iso_vat_number")
*/
private ?string $isoVatNumber = null;
/**
* @ORM\Column(type="string", length=32, nullable=true, name="vat_number")
*/
private ?string $vatNumber = null;
/**
* @ORM\Column(type="string", length=255, nullable=true, name="stripe_reference")
*/
private ?string $stripeReference = null;
/**
* @ORM\Column(type="boolean", options={"default": 0})
*/
private bool $fraudster = false;
/**
* @ORM\Column(type="boolean", options={"default": 0})
*/
private bool $deactivated = false;
/**
* @ORM\Column(type="datetime", name="date_add")
*/
private \DateTime $dateAdd;
/**
* @ORM\Column(type="datetime", name="date_upd", nullable=true)
*/
private ?\DateTime $dateUpd = null;
public function __construct()
{
$this->dateAdd = new \DateTime();
}
public function getId(): int
{
return $this->id;
}
public function getCustomerId(): int
{
return $this->customerId;
}
public function setCustomerId(int $customerId): self
{
$this->customerId = $customerId;
return $this;
}
public function getPassword(): ?string
{
return $this->password;
}
public function setPassword(?string $password): self
{
$this->password = $password;
return $this;
}
public function getPostcode(): ?string
{
return $this->postcode;
}
public function setPostcode(?string $postcode): self
{
$this->postcode = $postcode;
return $this;
}
public function getIsoVatNumber(): ?string
{
return $this->isoVatNumber;
}
public function setIsoVatNumber(?string $isoVatNumber): self
{
$this->isoVatNumber = $isoVatNumber;
return $this;
}
public function getVatNumber(): ?string
{
return $this->vatNumber;
}
public function setVatNumber(?string $vatNumber): self
{
$this->vatNumber = $vatNumber;
return $this;
}
public function getStripeReference(): ?string
{
return $this->stripeReference;
}
public function setStripeReference(?string $stripeReference): self
{
$this->stripeReference = $stripeReference;
return $this;
}
public function isFraudster(): bool
{
return $this->fraudster;
}
public function setFraudster(bool $fraudster): self
{
$this->fraudster = $fraudster;
return $this;
}
public function isDeactivated(): bool
{
return $this->deactivated;
}
public function setDeactivated(bool $deactivated): self
{
$this->deactivated = $deactivated;
return $this;
}
public function getDateAdd(): \DateTime
{
return $this->dateAdd;
}
public function getDateUpd(): ?\DateTime
{
return $this->dateUpd;
}
public function setDateUpd(?\DateTime $dateUpd): self
{
$this->dateUpd = $dateUpd;
return $this;
}
}