<?php
namespace App\Entity;
use App\Repository\CinemaContactRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CinemaContactRepository::class)
*/
class CinemaContact
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=15, nullable=true)
*/
private $civilite;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $telephone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="string", length=75, nullable=true)
*/
private $fonction;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $receptionMail;
/**
* @ORM\ManyToOne(targetEntity=Cinema::class, inversedBy="cinemaContacts")
*/
private $cinema;
public function getId(): ?int
{
return $this->id;
}
public function getCivilite(): ?string
{
return $this->civilite;
}
public function setCivilite(?string $civilite): self
{
$this->civilite = $civilite;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getFonction(): ?string
{
return $this->fonction;
}
public function setFonction(?string $fonction): self
{
$this->fonction = $fonction;
return $this;
}
public function isReceptionMail(): ?bool
{
return $this->receptionMail;
}
public function setReceptionMail(?bool $receptionMail): self
{
$this->receptionMail = $receptionMail;
return $this;
}
public function getCinema(): ?Cinema
{
return $this->cinema;
}
public function setCinema(?Cinema $cinema): self
{
$this->cinema = $cinema;
return $this;
}
}