<?php
namespace App\Entity\FreightForwarder;
use App\Entity\FreightForwarder;
use App\Repository\FreightForwarder\ContactPersonRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ContactPersonRepository::class)
* @ORM\Table(name="freight_forwarder_contact_person")
*/
class ContactPerson
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=255)
*/
private $lastName;
/**
* @ORM\Column(type="string", length=255)
*/
private $secondLastName;
/**
* @ORM\Column(type="string", length=255)
*/
private $position;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $phone;
/**
* @ORM\Column(type="string", length=1024, nullable=true)
*/
private $observations;
/**
* @ORM\ManyToOne(targetEntity=FreightForwarder::class, inversedBy="contactPeople")
* @ORM\JoinColumn(nullable=false)
*/
private $freightForwarder;
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 getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
public function getSecondLastName(): ?string
{
return $this->secondLastName;
}
public function setSecondLastName(string $secondLastName): self
{
$this->secondLastName = $secondLastName;
return $this;
}
public function getPosition(): ?string
{
return $this->position;
}
public function setPosition(string $position): self
{
$this->position = $position;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getObservations(): ?string
{
return $this->observations;
}
public function setObservations(?string $observations): self
{
$this->observations = $observations;
return $this;
}
public function getFreightForwarder(): ?FreightForwarder
{
return $this->freightForwarder;
}
public function setFreightForwarder(?FreightForwarder $freightForwarder): self
{
$this->freightForwarder = $freightForwarder;
return $this;
}
public function __toString()
{
return $this->name . ' ' . $this->lastName . ' ' . $this->secondLastName;
}
}