<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PersonReceiving
*
* @ORM\Table(name="person_receiving", uniqueConstraints={@ORM\UniqueConstraint(name="dni", columns={"dni"})})
* @ORM\Entity()
*/
class PersonReceiving
{
/**
* @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="phone", type="string", length=255, nullable=true)
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="secondary_phone", type="string", length=255, nullable=true)
*/
private $secondaryPhone;
/**
* @var string
*
* @ORM\Column(name="nationality", type="string", length=255, nullable=true)
*/
private $nationality;
/**
* @var string
*
* @ORM\Column(name="dni", type="string", length=11, nullable=true)
*/
private $dni;
/**
* @var string
*
* @ORM\Column(name="full_address", type="text", length=65535, nullable=true)
*/
private $fullAddress;
/**
* @var string|null
*
* @ORM\Column(name="house_number", type="string", length=255, nullable=true)
*/
private $houseNumber;
/**
* @var string|null
*
* @ORM\Column(name="first_between_street", type="string", length=255, nullable=true)
*/
private $firstBetweenStreet;
/**
* @var string|null
*
* @ORM\Column(name="second_between_street", type="string", length=255, nullable=true)
*/
private $secondBetweenStreet;
/**
* @var string|null
*
* @ORM\Column(name="apartment", type="string", length=255, nullable=true)
*/
private $apartment;
/**
* @var string|null
*
* @ORM\Column(name="floor", type="string", length=255, nullable=true)
*/
private $floor;
/**
* @var string
*
* @ORM\Column(name="province", type="string", length=255, nullable=true)
*/
private $province;
/**
* @var string
*
* @ORM\Column(name="municipality", type="string", length=255, nullable=true)
*/
private $municipality;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialNIT;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialName;
/**
* @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 getNationality(): ?string
{
return $this->nationality;
}
public function setNationality(string $nationality): self
{
$this->nationality = $nationality;
return $this;
}
public function getSecondaryPhone(): ?string
{
return $this->secondaryPhone;
}
public function setSecondaryPhone(string $secondaryPhone): self
{
$this->secondaryPhone = $secondaryPhone;
return $this;
}
public function getDni(): ?string
{
return $this->dni;
}
public function setDni(string $dni): self
{
$this->dni = $dni;
return $this;
}
public function getFullAddress(): ?string
{
return $this->fullAddress;
}
public function setFullAddress(string $fullAddress): self
{
$this->fullAddress = $fullAddress;
return $this;
}
public function getHouseNumber(): ?string
{
return $this->houseNumber;
}
public function setHouseNumber(?string $houseNumber): self
{
$this->houseNumber = $houseNumber;
return $this;
}
public function getFirstBetweenStreet(): ?string
{
return $this->firstBetweenStreet;
}
public function setFirstBetweenStreet(?string $firstBetweenStreet): self
{
$this->firstBetweenStreet = $firstBetweenStreet;
return $this;
}
public function getSecondBetweenStreet(): ?string
{
return $this->secondBetweenStreet;
}
public function setSecondBetweenStreet(?string $secondBetweenStreet): self
{
$this->secondBetweenStreet = $secondBetweenStreet;
return $this;
}
public function getApartment(): ?string
{
return $this->apartment;
}
public function setApartment(?string $apartment): self
{
$this->apartment = $apartment;
return $this;
}
public function getFloor(): ?string
{
return $this->floor;
}
public function setFloor(?string $floor): self
{
$this->floor = $floor;
return $this;
}
public function getProvince(): ?string
{
return $this->province;
}
public function setProvince(string $province): self
{
$this->province = $province;
return $this;
}
public function getMunicipality(): ?string
{
return $this->municipality;
}
public function setMunicipality(string $municipality): self
{
$this->municipality = $municipality;
return $this;
}
public function __toString()
{
return "{$this->name} {$this->firstLastName} {$this->secondLastName}";
}
public function getCommercialNIT(): ?string
{
return $this->commercialNIT;
}
public function setCommercialNIT(?string $commercialNIT): self
{
$this->commercialNIT = $commercialNIT;
return $this;
}
public function getCommercialName(): ?string
{
return $this->commercialName;
}
public function setCommercialName(?string $commercialName): self
{
$this->commercialName = $commercialName;
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;
}
}