<?php
namespace App\Entity;
use App\Repository\SupplierContactPersonsRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=SupplierContactPersonsRepository::class)
*/
class SupplierContactPersons
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({
* "supplier_contact_person@core",
* "supplier_contact_person@ref"
* })
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Suppliers::class, inversedBy="supplier_contact_persons")
* @ORM\JoinColumn(nullable=false)
*/
private $supplier;
/**
* @ORM\Column(type="string", length=64, nullable=true)
* @Groups({
* "supplier_contact_person@core",
* "supplier_contact_person@ref"
* })
*/
private $name;
/**
* @ORM\Column(type="string", length=64, nullable=true)
* @Groups({
* "supplier_contact_person@core",
* "supplier_contact_person@ref"
* })
*/
private $surname;
/**
* @ORM\Column(type="string", length=64, nullable=true)
* @Groups({
* "supplier_contact_person@core"
* })
*/
private $tel;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "supplier_contact_person@core"
* })
*/
private $email;
/**
* @ORM\ManyToOne(targetEntity=ContactPersonPositions::class, inversedBy="supplierContactPersons")
* @ORM\JoinColumn(nullable=true)
* @Groups({
* "supplier_contact_person@core",
* "supplier_contact_person@positions"
* })
*/
private $position;
public function getId(): ?int
{
return $this->id;
}
public function getSupplier(): ?Suppliers
{
return $this->supplier;
}
public function setSupplier(?Suppliers $supplier): self
{
$this->supplier = $supplier;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getSurname(): ?string
{
return $this->surname;
}
public function setSurname(?string $surname): self
{
$this->surname = $surname;
return $this;
}
public function getTel(): ?string
{
return $this->tel;
}
public function setTel(?string $tel): self
{
$this->tel = $tel;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getPosition(): ?ContactPersonPositions
{
return $this->position;
}
public function setPosition(?ContactPersonPositions $position): self
{
$this->position = $position;
return $this;
}
}