<?php
namespace App\Entity;
use App\Repository\ContactForFamilleAccueilRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Inscription;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Validator\Constraints as Assert;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\Serializer\Annotation\Ignore;
/**
* @ORM\Entity(repositoryClass=ContactForFamilleAccueilRepository::class)
*/
class ContactForFamilleAccueil
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private ?int $id = null;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $firstName;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $lastName;
/**
* @ORM\Column(type="string", length=1, nullable=true)
*/
private $sexe;
/**
* @ORM\ManyToOne(targetEntity=Location::class, inversedBy="contactForFamilleAccueils",cascade={"persist"})
*/
private $location;
/**
* @ORM\ManyToOne(targetEntity=Inscription::class, inversedBy="contactForFamilleAccueils",cascade={"persist"})
*/
private $inscription;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Email
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $phone;
public function getId(): ?int
{
return $this->id;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $firstName): self
{
$this->type = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = strtoupper($lastName);
return $this;
}
public function getSexe(): ?string
{
return $this->sexe;
}
public function setSexe(?string $Sexe): self
{
$this->sexe = $Sexe;
return $this;
}
public function getLocation(): ?Location
{
return $this->location;
}
public function setLocation(?Location $location): self
{
$this->location = $location;
return $this;
}
public function getInscription(): ?Inscription
{
return $this->inscription;
}
public function setInscription(?Inscription $inscription): self
{
$this->inscription = $inscription;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
}