<?php
namespace App\Entity\Master;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="eposm_m_contact")
* @ORM\Entity
*/
class Contact
{
/**
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="name", type="string", length=191)
*/
protected $name;
/**
* @ORM\Column(name="phone", type="string", length=191, nullable=true)
*/
protected $phone;
/**
* @ORM\Column(name="mobile", type="string", length=191, nullable=true)
*/
protected $mobile;
/**
* @ORM\Column(name="email", type="string", length=191, nullable=true)
*/
protected $email;
/**
* @ORM\Column(name="email2", type="string", length=191, nullable=true)
*/
protected $email2;
/**
* @ORM\Column(name="notes", type="text", nullable=true)
*/
protected $notes;
// ManyToOne
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Master\Company", inversedBy="contacts")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id")
*/
private $company;
//
public function getId(): ?string
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getMobile(): ?string
{
return $this->mobile;
}
public function setMobile(?string $mobile): self
{
$this->mobile = $mobile;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getEmail2(): ?string
{
return $this->email2;
}
public function setEmail2(?string $email2): self
{
$this->email2 = $email2;
return $this;
}
public function getNotes(): ?string
{
return $this->notes;
}
public function setNotes(?string $notes): self
{
$this->notes = $notes;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
}