src/Entity/FreightForwarder/ContactPerson.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\FreightForwarder;
  3. use App\Entity\FreightForwarder;
  4. use App\Repository\FreightForwarder\ContactPersonRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ContactPersonRepository::class)
  8.  * @ORM\Table(name="freight_forwarder_contact_person")
  9.  */
  10. class ContactPerson
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $lastName;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $secondLastName;
  30.     /**
  31.      * @ORM\Column(type="string", length=255)
  32.      */
  33.     private $position;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      */
  37.     private $email;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $phone;
  42.     /**
  43.      * @ORM\Column(type="string", length=1024, nullable=true)
  44.      */
  45.     private $observations;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=FreightForwarder::class, inversedBy="contactPeople")
  48.      * @ORM\JoinColumn(nullable=false)
  49.      */
  50.     private $freightForwarder;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getName(): ?string
  56.     {
  57.         return $this->name;
  58.     }
  59.     public function setName(string $name): self
  60.     {
  61.         $this->name $name;
  62.         return $this;
  63.     }
  64.     public function getLastName(): ?string
  65.     {
  66.         return $this->lastName;
  67.     }
  68.     public function setLastName(string $lastName): self
  69.     {
  70.         $this->lastName $lastName;
  71.         return $this;
  72.     }
  73.     public function getSecondLastName(): ?string
  74.     {
  75.         return $this->secondLastName;
  76.     }
  77.     public function setSecondLastName(string $secondLastName): self
  78.     {
  79.         $this->secondLastName $secondLastName;
  80.         return $this;
  81.     }
  82.     public function getPosition(): ?string
  83.     {
  84.         return $this->position;
  85.     }
  86.     public function setPosition(string $position): self
  87.     {
  88.         $this->position $position;
  89.         return $this;
  90.     }
  91.     public function getEmail(): ?string
  92.     {
  93.         return $this->email;
  94.     }
  95.     public function setEmail(string $email): self
  96.     {
  97.         $this->email $email;
  98.         return $this;
  99.     }
  100.     public function getPhone(): ?string
  101.     {
  102.         return $this->phone;
  103.     }
  104.     public function setPhone(?string $phone): self
  105.     {
  106.         $this->phone $phone;
  107.         return $this;
  108.     }
  109.     public function getObservations(): ?string
  110.     {
  111.         return $this->observations;
  112.     }
  113.     public function setObservations(?string $observations): self
  114.     {
  115.         $this->observations $observations;
  116.         return $this;
  117.     }
  118.     public function getFreightForwarder(): ?FreightForwarder
  119.     {
  120.         return $this->freightForwarder;
  121.     }
  122.     public function setFreightForwarder(?FreightForwarder $freightForwarder): self
  123.     {
  124.         $this->freightForwarder $freightForwarder;
  125.         return $this;
  126.     }
  127.     public function __toString()
  128.     {
  129.         return $this->name ' ' $this->lastName ' ' $this->secondLastName;
  130.     }
  131. }