<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PersonSending
*
* @ORM\Table(name="person_sending", uniqueConstraints={@ORM\UniqueConstraint(name="dni", columns={"dni"})})
* @ORM\Entity()
*/
class PersonSending
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=true)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="first_last_name", type="string", length=255, nullable=true)
*/
private $firstLastName;
/**
* @var string
*
* @ORM\Column(name="second_last_name", type="string", length=255, nullable=true)
*/
private $secondLastName;
/**
* @var string
*
* @ORM\Column(name="dni", type="string", length=50, nullable=true)
*/
private $dni;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=255, nullable=true)
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="e_mail_address", type="string", length=255, nullable=true)
*/
private $eMailAddress;
/**
* @var string
*
* @ORM\Column(name="nationality", type="string", length=255, nullable=true)
*/
private $nationality;
/**
* @var \DateTime
*
* @ORM\Column(name="date_birth", type="date", nullable=true)
*/
private $dateBirth;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $address;
/**
* @ORM\Column(type="string", length=1024, nullable=true)
*/
private $suburb;
/**
* @ORM\Column(type="string", length=1024, nullable=true)
*/
private $estate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialRFC;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialTaxId;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialEmail;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialPhone;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $commercialAddress;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getFirstLastName(): ?string
{
return $this->firstLastName;
}
public function setFirstLastName(string $firstLastName): self
{
$this->firstLastName = $firstLastName;
return $this;
}
public function getSecondLastName(): ?string
{
return $this->secondLastName;
}
public function setSecondLastName(string $secondLastName): self
{
$this->secondLastName = $secondLastName;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEMailAddress(): ?string
{
return $this->eMailAddress;
}
public function setEMailAddress(string $eMailAddress): self
{
$this->eMailAddress = $eMailAddress;
return $this;
}
public function getNationality(): ?string
{
return $this->nationality;
}
public function setNationality(string $nationality): self
{
$this->nationality = $nationality;
return $this;
}
public function getDateBirth(): ?\DateTimeInterface
{
return $this->dateBirth;
}
/**
* @throws \Exception
*/
public function setDateBirth($dateBirth): self
{
$this->dateBirth = new \DateTime($dateBirth);
return $this;
}
public function getDni(): ?string
{
return $this->dni;
}
public function setDni(string $dni): self
{
$this->dni = $dni;
return $this;
}
public function __toString()
{
return "{$this->name} {$this->firstLastName} {$this->secondLastName}";
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): self
{
$this->address = $address;
return $this;
}
public function getSuburb(): ?string
{
return $this->suburb;
}
public function setSuburb(string $suburb): self
{
$this->suburb = $suburb;
return $this;
}
public function getEstate(): ?string
{
return $this->estate;
}
public function setEstate(string $estate): self
{
$this->estate = $estate;
return $this;
}
public function getCommercialRFC(): ?string
{
return $this->commercialRFC;
}
public function setCommercialRFC(?string $commercialRFC): self
{
$this->commercialRFC = $commercialRFC;
return $this;
}
public function getCommercialName(): ?string
{
return $this->commercialName;
}
public function setCommercialName(?string $commercialName): self
{
$this->commercialName = $commercialName;
return $this;
}
public function getCommercialTaxId(): ?string
{
return $this->commercialTaxId;
}
public function setCommercialTaxId(?string $commercialTaxId): self
{
$this->commercialTaxId = $commercialTaxId;
return $this;
}
public function getCommercialEmail(): ?string
{
return $this->commercialEmail;
}
public function setCommercialEmail(?string $commercialEmail): self
{
$this->commercialEmail = $commercialEmail;
return $this;
}
public function getCommercialPhone(): ?string
{
return $this->commercialPhone;
}
public function setCommercialPhone(?string $commercialPhone): self
{
$this->commercialPhone = $commercialPhone;
return $this;
}
public function getCommercialAddress(): ?string
{
return $this->commercialAddress;
}
public function setCommercialAddress(?string $commercialAddress): self
{
$this->commercialAddress = $commercialAddress;
return $this;
}
}