src/Entity/Warranty.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\WarrantyRepository")
  7.  */
  8. class Warranty
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      * @Assert\Length(max=255)
  19.      */
  20.     private $serialNumber;
  21.     /**
  22.      * @ORM\Column(type="datetime")
  23.      * @Assert\Type("\DateTimeInterface")
  24.      */
  25.     private $dateOfPurchase;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      * @Assert\Length(max=255)
  29.      */
  30.     private $firstname;
  31.     /**
  32.      * @ORM\Column(type="string", length=255)
  33.      * @Assert\Length(max=255)
  34.      */
  35.     private $lastname;
  36.     /**
  37.      * @ORM\Column(type="datetime")
  38.      * @Assert\Type("\DateTimeInterface")
  39.      */
  40.     private $dateOfBirth;
  41.     /**
  42.      * @ORM\Column(type="string", length=3)
  43.      */
  44.     private $inrSelfTesting;
  45.     /**
  46.      * @ORM\Column(type="string", length=3)
  47.      */
  48.     private $healthcareProfessional;
  49.     /**
  50.      * @ORM\Column(type="string", length=255)
  51.      * @Assert\Length(max=255)
  52.      */
  53.     private $street;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      * @Assert\Length(max=255)
  57.      */
  58.     private $unit;
  59.     /**
  60.      * @ORM\Column(type="string", length=255)
  61.      * @Assert\Length(max=255)
  62.      */
  63.     private $city;
  64.     /**
  65.      * @ORM\Column(type="string", length=255)
  66.      * @Assert\Length(max=255)
  67.      */
  68.     private $postalCode;
  69.     /**
  70.      * @ORM\Column(type="string", length=255)
  71.      * @Assert\Length(max=255)
  72.      */
  73.     private $phone;
  74.     /**
  75.      * @ORM\Column(type="string", length=255)
  76.      * @Assert\Email(message = "The email '{{ value }}' is not a valid email.")
  77.      */
  78.     private $email;
  79.     /**
  80.      * @ORM\Column(type="string", length=255)
  81.      */
  82.     private $language;
  83.     /**
  84.      * @ORM\Column(type="string", nullable=true, length=3)
  85.      */
  86.     private $declarationPrescription;
  87.     /**
  88.      * @ORM\Column(type="string", nullable=true, length=3)
  89.      */
  90.     private $declarationTestLimitation;
  91.     /**
  92.      * @ORM\Column(type="string", nullable=true, length=3)
  93.      */
  94.     private $declarationCorrectly;
  95.     /**
  96.      * @ORM\Column(type="string", nullable=true, length=3)
  97.      */
  98.     private $declarationQuestions;
  99.     /**
  100.      * @ORM\Column(type="string", nullable=true, length=3)
  101.      */
  102.     private $declarationCommunications;
  103.     /**
  104.      * @ORM\Column(type="datetime", nullable=true)
  105.      * @Assert\Type("\DateTimeInterface")
  106.      */
  107.     private $createdAt;
  108.     /**
  109.      * @ORM\Column(type="string", nullable=true, length=255)
  110.      */
  111.     private $purpose
  112.     
  113.     /**
  114.      * @ORM\Column(type="string", nullable=true, length=255)
  115.      */
  116.     private $profession;        
  117.     public function __construct()
  118.     {
  119.         $this->createdAt = new \DateTime();
  120.     }
  121.     public function getId(): ?int
  122.     {
  123.         return $this->id;
  124.     }
  125.     public function getSerialNumber(): ?string
  126.     {
  127.         return $this->serialNumber;
  128.     }
  129.     public function setSerialNumber(string $serialNumber): self
  130.     {
  131.         $this->serialNumber $serialNumber;
  132.         return $this;
  133.     }
  134.     public function getDateOfPurchase(): ?\DateTimeInterface
  135.     {
  136.         return $this->dateOfPurchase;
  137.     }
  138.     public function setDateOfPurchase(?\DateTimeInterface $dateOfPurchase): self
  139.     {
  140.         $this->dateOfPurchase $dateOfPurchase;
  141.         return $this;
  142.     }
  143.     public function getFirstname(): ?string
  144.     {
  145.         return $this->firstname;
  146.     }
  147.     public function setFirstname(string $firstname): self
  148.     {
  149.         $this->firstname $firstname;
  150.         return $this;
  151.     }
  152.     public function getLastname(): ?string
  153.     {
  154.         return $this->lastname;
  155.     }
  156.     public function setLastname(string $lastname): self
  157.     {
  158.         $this->lastname $lastname;
  159.         return $this;
  160.     }
  161.     public function getDateOfBirth(): ?\DateTimeInterface
  162.     {
  163.         return $this->dateOfBirth;
  164.     }
  165.     public function setDateOfBirth(?\DateTimeInterface $dateOfBirth): self
  166.     {
  167.         $this->dateOfBirth $dateOfBirth;
  168.         return $this;
  169.     }
  170.     public function getInrSelfTesting(): ?string
  171.     {
  172.         return $this->inrSelfTesting;
  173.     }
  174.     public function setInrSelfTesting(string $inrSelfTesting): self
  175.     {
  176.         $this->inrSelfTesting $inrSelfTesting;
  177.         return $this;
  178.     }
  179.     public function getHealthcareProfessional(): ?string
  180.     {
  181.         return $this->healthcareProfessional;
  182.     }
  183.     public function setHealthcareProfessional(string $healthcareProfessional): self
  184.     {
  185.         $this->healthcareProfessional $healthcareProfessional;
  186.         return $this;
  187.     }
  188.     public function getStreet(): ?string
  189.     {
  190.         return $this->street;
  191.     }
  192.     public function setStreet(string $street): self
  193.     {
  194.         $this->street $street;
  195.         return $this;
  196.     }
  197.     public function getUnit(): ?string
  198.     {
  199.         return $this->unit;
  200.     }
  201.     public function setUnit(?string $unit): self
  202.     {
  203.         $this->unit $unit;
  204.         return $this;
  205.     }
  206.     public function getCity(): ?string
  207.     {
  208.         return $this->city;
  209.     }
  210.     public function setCity(string $city): self
  211.     {
  212.         $this->city $city;
  213.         return $this;
  214.     }
  215.     public function getPostalCode(): ?string
  216.     {
  217.         return $this->postalCode;
  218.     }
  219.     public function setPostalCode(string $postalCode): self
  220.     {
  221.         $this->postalCode $postalCode;
  222.         return $this;
  223.     }
  224.     public function getPhone(): ?string
  225.     {
  226.         return $this->phone;
  227.     }
  228.     public function setPhone(string $phone): self
  229.     {
  230.         $this->phone $phone;
  231.         return $this;
  232.     }
  233.     public function getEmail(): ?string
  234.     {
  235.         return $this->email;
  236.     }
  237.     public function setEmail(string $email): self
  238.     {
  239.         $this->email $email;
  240.         return $this;
  241.     }
  242.     public function getLanguage(): ?string
  243.     {
  244.         return $this->language;
  245.     }
  246.     public function setLanguage(string $language): self
  247.     {
  248.         $this->language $language;
  249.         return $this;
  250.     }
  251.     public function getDeclarationPrescription(): ?string
  252.     {
  253.         return $this->declarationPrescription;
  254.     }
  255.     public function setDeclarationPrescription(string $declarationPrescription): self
  256.     {
  257.         $this->declarationPrescription $declarationPrescription;
  258.         return $this;
  259.     }
  260.     public function getDeclarationTestLimitation(): ?string
  261.     {
  262.         return $this->declarationTestLimitation;
  263.     }
  264.     public function setDeclarationTestLimitation(string $declarationTestLimitation): self
  265.     {
  266.         $this->declarationTestLimitation $declarationTestLimitation;
  267.         return $this;
  268.     }
  269.     public function getDeclarationCorrectly(): ?string
  270.     {
  271.         return $this->declarationCorrectly;
  272.     }
  273.     public function setDeclarationCorrectly(string $declarationCorrectly): self
  274.     {
  275.         $this->declarationCorrectly $declarationCorrectly;
  276.         return $this;
  277.     }
  278.     public function getDeclarationQuestions(): ?string
  279.     {
  280.         return $this->declarationQuestions;
  281.     }
  282.     public function setDeclarationQuestions(string $declarationQuestions): self
  283.     {
  284.         $this->declarationQuestions $declarationQuestions;
  285.         return $this;
  286.     }
  287.     public function getDeclarationCommunications(): ?string
  288.     {
  289.         return $this->declarationCommunications;
  290.     }
  291.     public function setDeclarationCommunications(string $declarationCommunications): self
  292.     {
  293.         $this->declarationCommunications $declarationCommunications;
  294.         return $this;
  295.     }
  296.     public function getCreatedAt(): ?\DateTimeInterface
  297.     {
  298.         return $this->createdAt;
  299.     }
  300.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  301.     {
  302.         $this->createdAt $createdAt;
  303.         return $this;
  304.     }
  305.     public function getPurpose(): ?string
  306.     {
  307.         return $this->purpose;
  308.     }
  309.     public function setPurpose(?string $purpose): self
  310.     {
  311.         $this->purpose $purpose;
  312.         return $this;
  313.     } 
  314.     public function getProfession(): ?string
  315.     {
  316.         return $this->profession;
  317.     }
  318.     public function setProfession(?string $profession): self
  319.     {
  320.         $this->profession $profession;
  321.         return $this;
  322.     }     
  323. }