<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Represnete les contacts
* @ORM\Entity()
*/
class Contact extends AbstractPerson
{
public function __toString()
{
return (string) $this->firstname;
}
/**
* @ORM\Column(type="string", nullable=true)
*/
protected $job;
/**
* @var Contact|null
*
* @ORM\ManyToOne(targetEntity="Site")
* @ORM\JoinColumn(name="site_id", referencedColumnName="id", onDelete="SET NULL")
*/
private $site;
/**
* @ORM\Column(type="string", nullable=true)
*/
protected $phoneOther;
/**
* @return mixed
*/
public function getJob()
{
return $this->job;
}
/**
* @param mixed $job
*/
public function setJob($job): void
{
$this->job = $job;
}
/**
* @return Contact|null
*/
public function getSite(): ?Site
{
return $this->site;
}
/**
* @param Site|null $site
*/
public function setSite($site): void
{
$this->site = $site;
}
/**
* @return mixed
*/
public function getPhoneOther()
{
return $this->phoneOther;
}
/**
* @param mixed $phoneOther
*/
public function setPhoneOther($phoneOther): void
{
$this->phoneOther = $phoneOther;
}
}