src/Entity/PersonSending.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PersonSending
  6.  *
  7.  * @ORM\Table(name="person_sending", uniqueConstraints={@ORM\UniqueConstraint(name="dni", columns={"dni"})})
  8.  * @ORM\Entity()
  9.  */
  10. class PersonSending
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="name", type="string", length=255, nullable=true)
  24.      */
  25.     private $name;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="first_last_name", type="string", length=255, nullable=true)
  30.      */
  31.     private $firstLastName;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="second_last_name", type="string", length=255, nullable=true)
  36.      */
  37.     private $secondLastName;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="dni", type="string", length=50, nullable=true)
  42.      */
  43.     private $dni;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="phone", type="string", length=255, nullable=true)
  48.      */
  49.     private $phone;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="e_mail_address", type="string", length=255, nullable=true)
  54.      */
  55.     private $eMailAddress;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="nationality", type="string", length=255, nullable=true)
  60.      */
  61.     private $nationality;
  62.     /**
  63.      * @var \DateTime
  64.      *
  65.      * @ORM\Column(name="date_birth", type="date", nullable=true)
  66.      */
  67.     private $dateBirth;
  68.     /**
  69.      * @ORM\Column(type="text", nullable=true)
  70.      */
  71.     private $address;
  72.     /**
  73.      * @ORM\Column(type="string", length=1024, nullable=true)
  74.      */
  75.     private $suburb;
  76.     /**
  77.      * @ORM\Column(type="string", length=1024, nullable=true)
  78.      */
  79.     private $estate;
  80.     /**
  81.      * @ORM\Column(type="string", length=255, nullable=true)
  82.      */
  83.     private $commercialRFC;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      */
  87.     private $commercialName;
  88.     /**
  89.      * @ORM\Column(type="string", length=255, nullable=true)
  90.      */
  91.     private $commercialTaxId;
  92.     /**
  93.      * @ORM\Column(type="string", length=255, nullable=true)
  94.      */
  95.     private $commercialEmail;
  96.     /**
  97.      * @ORM\Column(type="string", length=255, nullable=true)
  98.      */
  99.     private $commercialPhone;
  100.     /**
  101.      * @ORM\Column(type="text", nullable=true)
  102.      */
  103.     private $commercialAddress;
  104.     public function getId(): ?int
  105.     {
  106.         return $this->id;
  107.     }
  108.     public function getName(): ?string
  109.     {
  110.         return $this->name;
  111.     }
  112.     public function setName(string $name): self
  113.     {
  114.         $this->name $name;
  115.         return $this;
  116.     }
  117.     public function getFirstLastName(): ?string
  118.     {
  119.         return $this->firstLastName;
  120.     }
  121.     public function setFirstLastName(string $firstLastName): self
  122.     {
  123.         $this->firstLastName $firstLastName;
  124.         return $this;
  125.     }
  126.     public function getSecondLastName(): ?string
  127.     {
  128.         return $this->secondLastName;
  129.     }
  130.     public function setSecondLastName(string $secondLastName): self
  131.     {
  132.         $this->secondLastName $secondLastName;
  133.         return $this;
  134.     }
  135.     public function getPhone(): ?string
  136.     {
  137.         return $this->phone;
  138.     }
  139.     public function setPhone(string $phone): self
  140.     {
  141.         $this->phone $phone;
  142.         return $this;
  143.     }
  144.     public function getEMailAddress(): ?string
  145.     {
  146.         return $this->eMailAddress;
  147.     }
  148.     public function setEMailAddress(string $eMailAddress): self
  149.     {
  150.         $this->eMailAddress $eMailAddress;
  151.         return $this;
  152.     }
  153.     public function getNationality(): ?string
  154.     {
  155.         return $this->nationality;
  156.     }
  157.     public function setNationality(string $nationality): self
  158.     {
  159.         $this->nationality $nationality;
  160.         return $this;
  161.     }
  162.     public function getDateBirth(): ?\DateTimeInterface
  163.     {
  164.         return $this->dateBirth;
  165.     }
  166.     /**
  167.      * @throws \Exception
  168.      */
  169.     public function setDateBirth($dateBirth): self
  170.     {
  171.         $this->dateBirth = new \DateTime($dateBirth);
  172.         return $this;
  173.     }
  174.     public function getDni(): ?string
  175.     {
  176.         return $this->dni;
  177.     }
  178.     public function setDni(string $dni): self
  179.     {
  180.         $this->dni $dni;
  181.         return $this;
  182.     }
  183.     public function __toString()
  184.     {
  185.         return "{$this->name} {$this->firstLastName} {$this->secondLastName}";
  186.     }
  187.     public function getAddress(): ?string
  188.     {
  189.         return $this->address;
  190.     }
  191.     public function setAddress(string $address): self
  192.     {
  193.         $this->address $address;
  194.         return $this;
  195.     }
  196.     public function getSuburb(): ?string
  197.     {
  198.         return $this->suburb;
  199.     }
  200.     public function setSuburb(string $suburb): self
  201.     {
  202.         $this->suburb $suburb;
  203.         return $this;
  204.     }
  205.     public function getEstate(): ?string
  206.     {
  207.         return $this->estate;
  208.     }
  209.     public function setEstate(string $estate): self
  210.     {
  211.         $this->estate $estate;
  212.         return $this;
  213.     }
  214.     public function getCommercialRFC(): ?string
  215.     {
  216.         return $this->commercialRFC;
  217.     }
  218.     public function setCommercialRFC(?string $commercialRFC): self
  219.     {
  220.         $this->commercialRFC $commercialRFC;
  221.         return $this;
  222.     }
  223.     public function getCommercialName(): ?string
  224.     {
  225.         return $this->commercialName;
  226.     }
  227.     public function setCommercialName(?string $commercialName): self
  228.     {
  229.         $this->commercialName $commercialName;
  230.         return $this;
  231.     }
  232.     public function getCommercialTaxId(): ?string
  233.     {
  234.         return $this->commercialTaxId;
  235.     }
  236.     public function setCommercialTaxId(?string $commercialTaxId): self
  237.     {
  238.         $this->commercialTaxId $commercialTaxId;
  239.         return $this;
  240.     }
  241.     public function getCommercialEmail(): ?string
  242.     {
  243.         return $this->commercialEmail;
  244.     }
  245.     public function setCommercialEmail(?string $commercialEmail): self
  246.     {
  247.         $this->commercialEmail $commercialEmail;
  248.         return $this;
  249.     }
  250.     public function getCommercialPhone(): ?string
  251.     {
  252.         return $this->commercialPhone;
  253.     }
  254.     public function setCommercialPhone(?string $commercialPhone): self
  255.     {
  256.         $this->commercialPhone $commercialPhone;
  257.         return $this;
  258.     }
  259.     public function getCommercialAddress(): ?string
  260.     {
  261.         return $this->commercialAddress;
  262.     }
  263.     public function setCommercialAddress(?string $commercialAddress): self
  264.     {
  265.         $this->commercialAddress $commercialAddress;
  266.         return $this;
  267.     }
  268. }