<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\PodcastExpertRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
// PodcastExpert représente les experts pour place à l'expert
#[ORM\Entity(repositoryClass: PodcastExpertRepository::class)]
class PodcastExpert
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $firstname;
#[ORM\Column(type: 'string', length: 16777215, nullable: true)]
private $lastname;
#[ORM\Column(type: 'text', length: 16777215, nullable: true)]
private $job;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $email;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $address;
#[ORM\Column(type: 'string', length: 10, nullable: true)]
private $zipcode;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $city;
#[ORM\Column(type: 'float', nullable: true)]
private $lat;
#[ORM\Column(type: 'float', nullable: true)]
private $lon;
#[ORM\OneToMany(mappedBy: 'podcastExpert', targetEntity: PodcastPrivate::class)]
private $podcastPrivates;
public function __construct()
{
$this->podcastPrivates = new ArrayCollection();
}
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 getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(?string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getJob(): ?string
{
return $this->job;
}
public function setJob(?string $job): self
{
$this->job = $job;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getZipcode(): ?string
{
return $this->zipcode;
}
public function setZipcode(?string $zipcode): self
{
$this->zipcode = $zipcode;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getLat(): ?float
{
return $this->lat;
}
public function setLat(?float $lat): self
{
$this->lat = $lat;
return $this;
}
public function getLon(): ?float
{
return $this->lon;
}
public function setLon(?float $lon): self
{
$this->lon = $lon;
return $this;
}
/**
* @return Collection<int, PodcastPrivate>
*/
public function getPodcastPrivates(): Collection
{
return $this->podcastPrivates;
}
public function addPodcastPrivate(PodcastPrivate $podcastPrivate): self
{
if (!$this->podcastPrivates->contains($podcastPrivate)) {
$this->podcastPrivates[] = $podcastPrivate;
$podcastPrivate->setPodcastExpert($this);
}
return $this;
}
public function removePodcastPrivate(PodcastPrivate $podcastPrivate): self
{
if ($this->podcastPrivates->removeElement($podcastPrivate)) {
// set the owning side to null (unless already changed)
if ($podcastPrivate->getPodcastExpert() === $this) {
$podcastPrivate->setPodcastExpert(null);
}
}
return $this;
}
}