src/Entity/PersonReceiving.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PersonReceiving
  6.  *
  7.  * @ORM\Table(name="person_receiving", uniqueConstraints={@ORM\UniqueConstraint(name="dni", columns={"dni"})})
  8.  * @ORM\Entity()
  9.  */
  10. class PersonReceiving
  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="phone", type="string", length=255, nullable=true)
  42.      */
  43.     private $phone;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="secondary_phone", type="string", length=255, nullable=true)
  48.      */
  49.     private $secondaryPhone;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="nationality", type="string", length=255, nullable=true)
  54.      */
  55.     private $nationality;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="dni", type="string", length=11, nullable=true)
  60.      */
  61.     private $dni;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="full_address", type="text", length=65535, nullable=true)
  66.      */
  67.     private $fullAddress;
  68.     /**
  69.      * @var string|null
  70.      *
  71.      * @ORM\Column(name="house_number", type="string", length=255, nullable=true)
  72.      */
  73.     private $houseNumber;
  74.     /**
  75.      * @var string|null
  76.      *
  77.      * @ORM\Column(name="first_between_street", type="string", length=255, nullable=true)
  78.      */
  79.     private $firstBetweenStreet;
  80.     /**
  81.      * @var string|null
  82.      *
  83.      * @ORM\Column(name="second_between_street", type="string", length=255, nullable=true)
  84.      */
  85.     private $secondBetweenStreet;
  86.     /**
  87.      * @var string|null
  88.      *
  89.      * @ORM\Column(name="apartment", type="string", length=255, nullable=true)
  90.      */
  91.     private $apartment;
  92.     /**
  93.      * @var string|null
  94.      *
  95.      * @ORM\Column(name="floor", type="string", length=255, nullable=true)
  96.      */
  97.     private $floor;
  98.     /**
  99.      * @var string
  100.      *
  101.      * @ORM\Column(name="province", type="string", length=255, nullable=true)
  102.      */
  103.     private $province;
  104.     /**
  105.      * @var string
  106.      *
  107.      * @ORM\Column(name="municipality", type="string", length=255, nullable=true)
  108.      */
  109.     private $municipality;
  110.     /**
  111.      * @ORM\Column(type="string", length=255, nullable=true)
  112.      */
  113.     private $commercialNIT;
  114.     /**
  115.      * @ORM\Column(type="string", length=255, nullable=true)
  116.      */
  117.     private $commercialName;
  118.     /**
  119.      * @ORM\Column(type="string", length=255, nullable=true)
  120.      */
  121.     private $commercialEmail;
  122.     /**
  123.      * @ORM\Column(type="string", length=255, nullable=true)
  124.      */
  125.     private $commercialPhone;
  126.     /**
  127.      * @ORM\Column(type="text", nullable=true)
  128.      */
  129.     private $commercialAddress;
  130.     public function getId(): ?int
  131.     {
  132.         return $this->id;
  133.     }
  134.     public function getName(): ?string
  135.     {
  136.         return $this->name;
  137.     }
  138.     public function setName(string $name): self
  139.     {
  140.         $this->name $name;
  141.         return $this;
  142.     }
  143.     public function getFirstLastName(): ?string
  144.     {
  145.         return $this->firstLastName;
  146.     }
  147.     public function setFirstLastName(string $firstLastName): self
  148.     {
  149.         $this->firstLastName $firstLastName;
  150.         return $this;
  151.     }
  152.     public function getSecondLastName(): ?string
  153.     {
  154.         return $this->secondLastName;
  155.     }
  156.     public function setSecondLastName(string $secondLastName): self
  157.     {
  158.         $this->secondLastName $secondLastName;
  159.         return $this;
  160.     }
  161.     public function getPhone(): ?string
  162.     {
  163.         return $this->phone;
  164.     }
  165.     public function setPhone(string $phone): self
  166.     {
  167.         $this->phone $phone;
  168.         return $this;
  169.     }
  170.     public function getNationality(): ?string
  171.     {
  172.         return $this->nationality;
  173.     }
  174.     public function setNationality(string $nationality): self
  175.     {
  176.         $this->nationality $nationality;
  177.         return $this;
  178.     }
  179.     public function getSecondaryPhone(): ?string
  180.     {
  181.         return $this->secondaryPhone;
  182.     }
  183.     public function setSecondaryPhone(string $secondaryPhone): self
  184.     {
  185.         $this->secondaryPhone $secondaryPhone;
  186.         return $this;
  187.     }
  188.     public function getDni(): ?string
  189.     {
  190.         return $this->dni;
  191.     }
  192.     public function setDni(string $dni): self
  193.     {
  194.         $this->dni $dni;
  195.         return $this;
  196.     }
  197.     public function getFullAddress(): ?string
  198.     {
  199.         return $this->fullAddress;
  200.     }
  201.     public function setFullAddress(string $fullAddress): self
  202.     {
  203.         $this->fullAddress $fullAddress;
  204.         return $this;
  205.     }
  206.     public function getHouseNumber(): ?string
  207.     {
  208.         return $this->houseNumber;
  209.     }
  210.     public function setHouseNumber(?string $houseNumber): self
  211.     {
  212.         $this->houseNumber $houseNumber;
  213.         return $this;
  214.     }
  215.     public function getFirstBetweenStreet(): ?string
  216.     {
  217.         return $this->firstBetweenStreet;
  218.     }
  219.     public function setFirstBetweenStreet(?string $firstBetweenStreet): self
  220.     {
  221.         $this->firstBetweenStreet $firstBetweenStreet;
  222.         return $this;
  223.     }
  224.     public function getSecondBetweenStreet(): ?string
  225.     {
  226.         return $this->secondBetweenStreet;
  227.     }
  228.     public function setSecondBetweenStreet(?string $secondBetweenStreet): self
  229.     {
  230.         $this->secondBetweenStreet $secondBetweenStreet;
  231.         return $this;
  232.     }
  233.     public function getApartment(): ?string
  234.     {
  235.         return $this->apartment;
  236.     }
  237.     public function setApartment(?string $apartment): self
  238.     {
  239.         $this->apartment $apartment;
  240.         return $this;
  241.     }
  242.     public function getFloor(): ?string
  243.     {
  244.         return $this->floor;
  245.     }
  246.     public function setFloor(?string $floor): self
  247.     {
  248.         $this->floor $floor;
  249.         return $this;
  250.     }
  251.     public function getProvince(): ?string
  252.     {
  253.         return $this->province;
  254.     }
  255.     public function setProvince(string $province): self
  256.     {
  257.         $this->province $province;
  258.         return $this;
  259.     }
  260.     public function getMunicipality(): ?string
  261.     {
  262.         return $this->municipality;
  263.     }
  264.     public function setMunicipality(string $municipality): self
  265.     {
  266.         $this->municipality $municipality;
  267.         return $this;
  268.     }
  269.     public function __toString()
  270.     {
  271.         return "{$this->name} {$this->firstLastName} {$this->secondLastName}";
  272.     }
  273.     public function getCommercialNIT(): ?string
  274.     {
  275.         return $this->commercialNIT;
  276.     }
  277.     public function setCommercialNIT(?string $commercialNIT): self
  278.     {
  279.         $this->commercialNIT $commercialNIT;
  280.         return $this;
  281.     }
  282.     public function getCommercialName(): ?string
  283.     {
  284.         return $this->commercialName;
  285.     }
  286.     public function setCommercialName(?string $commercialName): self
  287.     {
  288.         $this->commercialName $commercialName;
  289.         return $this;
  290.     }
  291.     public function getCommercialEmail(): ?string
  292.     {
  293.         return $this->commercialEmail;
  294.     }
  295.     public function setCommercialEmail(?string $commercialEmail): self
  296.     {
  297.         $this->commercialEmail $commercialEmail;
  298.         return $this;
  299.     }
  300.     public function getCommercialPhone(): ?string
  301.     {
  302.         return $this->commercialPhone;
  303.     }
  304.     public function setCommercialPhone(?string $commercialPhone): self
  305.     {
  306.         $this->commercialPhone $commercialPhone;
  307.         return $this;
  308.     }
  309.     public function getCommercialAddress(): ?string
  310.     {
  311.         return $this->commercialAddress;
  312.     }
  313.     public function setCommercialAddress(?string $commercialAddress): self
  314.     {
  315.         $this->commercialAddress $commercialAddress;
  316.         return $this;
  317.     }
  318. }