<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="App\Repository\WarrantyRepository")
*/
class Warranty
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Length(max=255)
*/
private $serialNumber;
/**
* @ORM\Column(type="datetime")
* @Assert\Type("\DateTimeInterface")
*/
private $dateOfPurchase;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Length(max=255)
*/
private $firstname;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Length(max=255)
*/
private $lastname;
/**
* @ORM\Column(type="datetime")
* @Assert\Type("\DateTimeInterface")
*/
private $dateOfBirth;
/**
* @ORM\Column(type="string", length=3)
*/
private $inrSelfTesting;
/**
* @ORM\Column(type="string", length=3)
*/
private $healthcareProfessional;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Length(max=255)
*/
private $street;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(max=255)
*/
private $unit;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Length(max=255)
*/
private $city;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Length(max=255)
*/
private $postalCode;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Length(max=255)
*/
private $phone;
/**
* @ORM\Column(type="string", length=255)
* @Assert\Email(message = "The email '{{ value }}' is not a valid email.")
*/
private $email;
/**
* @ORM\Column(type="string", length=255)
*/
private $language;
/**
* @ORM\Column(type="string", nullable=true, length=3)
*/
private $declarationPrescription;
/**
* @ORM\Column(type="string", nullable=true, length=3)
*/
private $declarationTestLimitation;
/**
* @ORM\Column(type="string", nullable=true, length=3)
*/
private $declarationCorrectly;
/**
* @ORM\Column(type="string", nullable=true, length=3)
*/
private $declarationQuestions;
/**
* @ORM\Column(type="string", nullable=true, length=3)
*/
private $declarationCommunications;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Assert\Type("\DateTimeInterface")
*/
private $createdAt;
/**
* @ORM\Column(type="string", nullable=true, length=255)
*/
private $purpose;
/**
* @ORM\Column(type="string", nullable=true, length=255)
*/
private $profession;
public function __construct()
{
$this->createdAt = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getSerialNumber(): ?string
{
return $this->serialNumber;
}
public function setSerialNumber(string $serialNumber): self
{
$this->serialNumber = $serialNumber;
return $this;
}
public function getDateOfPurchase(): ?\DateTimeInterface
{
return $this->dateOfPurchase;
}
public function setDateOfPurchase(?\DateTimeInterface $dateOfPurchase): self
{
$this->dateOfPurchase = $dateOfPurchase;
return $this;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getDateOfBirth(): ?\DateTimeInterface
{
return $this->dateOfBirth;
}
public function setDateOfBirth(?\DateTimeInterface $dateOfBirth): self
{
$this->dateOfBirth = $dateOfBirth;
return $this;
}
public function getInrSelfTesting(): ?string
{
return $this->inrSelfTesting;
}
public function setInrSelfTesting(string $inrSelfTesting): self
{
$this->inrSelfTesting = $inrSelfTesting;
return $this;
}
public function getHealthcareProfessional(): ?string
{
return $this->healthcareProfessional;
}
public function setHealthcareProfessional(string $healthcareProfessional): self
{
$this->healthcareProfessional = $healthcareProfessional;
return $this;
}
public function getStreet(): ?string
{
return $this->street;
}
public function setStreet(string $street): self
{
$this->street = $street;
return $this;
}
public function getUnit(): ?string
{
return $this->unit;
}
public function setUnit(?string $unit): self
{
$this->unit = $unit;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(string $city): self
{
$this->city = $city;
return $this;
}
public function getPostalCode(): ?string
{
return $this->postalCode;
}
public function setPostalCode(string $postalCode): self
{
$this->postalCode = $postalCode;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getLanguage(): ?string
{
return $this->language;
}
public function setLanguage(string $language): self
{
$this->language = $language;
return $this;
}
public function getDeclarationPrescription(): ?string
{
return $this->declarationPrescription;
}
public function setDeclarationPrescription(string $declarationPrescription): self
{
$this->declarationPrescription = $declarationPrescription;
return $this;
}
public function getDeclarationTestLimitation(): ?string
{
return $this->declarationTestLimitation;
}
public function setDeclarationTestLimitation(string $declarationTestLimitation): self
{
$this->declarationTestLimitation = $declarationTestLimitation;
return $this;
}
public function getDeclarationCorrectly(): ?string
{
return $this->declarationCorrectly;
}
public function setDeclarationCorrectly(string $declarationCorrectly): self
{
$this->declarationCorrectly = $declarationCorrectly;
return $this;
}
public function getDeclarationQuestions(): ?string
{
return $this->declarationQuestions;
}
public function setDeclarationQuestions(string $declarationQuestions): self
{
$this->declarationQuestions = $declarationQuestions;
return $this;
}
public function getDeclarationCommunications(): ?string
{
return $this->declarationCommunications;
}
public function setDeclarationCommunications(string $declarationCommunications): self
{
$this->declarationCommunications = $declarationCommunications;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getPurpose(): ?string
{
return $this->purpose;
}
public function setPurpose(?string $purpose): self
{
$this->purpose = $purpose;
return $this;
}
public function getProfession(): ?string
{
return $this->profession;
}
public function setProfession(?string $profession): self
{
$this->profession = $profession;
return $this;
}
}