src/Entity/Client/FamilyMember.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Client;
  3. use App\Entity\AbstractPerson;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Entity\Client;
  6. /**
  7.  * Represnete les contacts
  8.  * @ORM\Entity()
  9.  */
  10. class FamilyMember extends AbstractPerson
  11. {
  12.     public function __toString()
  13.     {
  14.         return (string) $this->firstname;
  15.     }
  16.     /**
  17.      *
  18.      * @ORM\ManyToOne(targetEntity=Client::class)
  19.      * @ORM\JoinColumn(name="client_id", referencedColumnName="id", onDelete="SET NULL")
  20.      */
  21.     private $client;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=true)
  24.      */
  25.     protected $type;
  26.     /**
  27.      * @return mixed
  28.      */
  29.     public function getType()
  30.     {
  31.         return $this->type;
  32.     }
  33.     /**
  34.      * @param mixed $type
  35.      */
  36.     public function setType($type): void
  37.     {
  38.         $this->type $type;
  39.     }
  40.     /**
  41.      * @return mixed
  42.      */
  43.     public function getClient()
  44.     {
  45.         return $this->client;
  46.     }
  47.     /**
  48.      * @param mixed $client
  49.      */
  50.     public function setClient($client): void
  51.     {
  52.         $this->client $client;
  53.     }
  54. }