<?php
namespace App\Entity\Client;
use App\Entity\AbstractPerson;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Client;
/**
* Represnete les contacts
* @ORM\Entity()
*/
class FamilyMember extends AbstractPerson
{
public function __toString()
{
return (string) $this->firstname;
}
/**
*
* @ORM\ManyToOne(targetEntity=Client::class)
* @ORM\JoinColumn(name="client_id", referencedColumnName="id", onDelete="SET NULL")
*/
private $client;
/**
* @ORM\Column(type="string", nullable=true)
*/
protected $type;
/**
* @return mixed
*/
public function getType()
{
return $this->type;
}
/**
* @param mixed $type
*/
public function setType($type): void
{
$this->type = $type;
}
/**
* @return mixed
*/
public function getClient()
{
return $this->client;
}
/**
* @param mixed $client
*/
public function setClient($client): void
{
$this->client = $client;
}
}