<?php
namespace App\Entity;
use App\Repository\PodcastExpertComptableRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
// PodcastExpertComptable représente les experts-comptables pour place à l'expert-comptable
#[ORM\Entity(repositoryClass: PodcastExpertComptableRepository::class)]
class PodcastExpertComptable
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $firstname;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $lastname;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $job;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $token;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $url;
#[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: 'expertComptable', targetEntity: PodcastHost::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
private $hosts;
/**
* @var string
*
*/
#[ORM\Column(type: 'string', length: 50, nullable: true)]
private $colorprimary = "#82CD18";
/**
* @var string
*
*/
#[ORM\Column(type: 'string', length: 50, nullable: true)]
private $colorsecondary = "#FF6000";
#[ORM\OneToMany(mappedBy: 'podcastExpert', targetEntity: PodcastEpisode::class)]
private $podcastEpisodes;
#[ORM\OneToMany(mappedBy: 'podcastExpertComptable', targetEntity: PodcastEpisode::class)]
private $podcastEpisodesEc;
#[ORM\Column(type: 'boolean', nullable: true)]
private $darkTheme;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $compagnyName;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $compagnyUrl;
public function __construct()
{
$this->podcastEpisodes = new ArrayCollection();
$this->hosts = new ArrayCollection();
$this->podcastEpisodesEc = 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 getToken(): ?string
{
return $this->token;
}
public function setToken(?string $token): self
{
$this->token = $token;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
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, PodcastHost>
*/
public function getHosts(): Collection
{
return $this->hosts;
}
public function addHost(PodcastHost $domain): self
{
if (!$this->hosts->contains($domain)) {
$this->hosts[] = $domain;
$domain->setExpertComptable($this);
}
return $this;
}
public function removeHost(PodcastHost $domain): self
{
if ($this->hosts->removeElement($domain)) {
// set the owning side to null (unless already changed)
if ($domain->getExpertComptable() === $this) {
$domain->setExpertComptable(null);
}
}
return $this;
}
public function getListHosts(): array
{
$result = [];
/** @var PodcastHost $domain */
foreach ($this->hosts as $domain) {
$result[] = $domain->getDomain();
}
return $result;
}
/**
* @return Collection<int, PodcastEpisode>
*/
public function getPodcastEpisodes(): Collection
{
return $this->podcastEpisodes;
}
public function getColorprimary(): ?string
{
return $this->colorprimary;
}
public function setColorprimary(?string $colorprimary): self
{
$this->colorprimary = $colorprimary;
return $this;
}
public function getColorsecondary(): ?string
{
return $this->colorsecondary;
}
public function setColorsecondary(?string $colorsecondary): self
{
$this->colorsecondary = $colorsecondary;
return $this;
}
/**
* @return Collection<int, PodcastEpisode>
*/
public function getPodcastEpisodesEc(): Collection
{
return $this->podcastEpisodesEc;
}
public function addPodcastEpisodesEc(PodcastEpisode $podcastEpisodesEc): self
{
if (!$this->podcastEpisodesEc->contains($podcastEpisodesEc)) {
$this->podcastEpisodesEc[] = $podcastEpisodesEc;
$podcastEpisodesEc->setPodcastExpertComptable($this);
}
return $this;
}
public function removePodcastEpisodesEc(PodcastEpisode $podcastEpisodesEc): self
{
if ($this->podcastEpisodesEc->removeElement($podcastEpisodesEc)) {
// set the owning side to null (unless already changed)
if ($podcastEpisodesEc->getPodcastExpertComptable() === $this) {
$podcastEpisodesEc->setPodcastExpertComptable(null);
}
}
return $this;
}
public function isDarkTheme(): ?bool
{
return $this->darkTheme;
}
public function setDarkTheme(?bool $darkTheme): self
{
$this->darkTheme = $darkTheme;
return $this;
}
public function getCompagnyName(): ?string
{
return $this->compagnyName;
}
public function setCompagnyName(?string $compagnyName): self
{
$this->compagnyName = $compagnyName;
return $this;
}
public function getCompagnyUrl(): ?string
{
return $this->compagnyUrl;
}
public function setCompagnyUrl(?string $compagnyUrl): self
{
$this->compagnyUrl = $compagnyUrl;
return $this;
}
}