<?php
namespace App\Entity;
use App\Repository\PodcastHostRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PodcastHostRepository::class)]
class PodcastHost
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $domain;
#[ORM\ManyToOne(targetEntity: PodcastExpertComptable::class, inversedBy: 'hosts')]
private $expertComptable;
public function getId(): ?int
{
return $this->id;
}
public function getDomain(): ?string
{
return $this->domain;
}
public function setDomain(?string $domain): self
{
$this->domain = $domain;
return $this;
}
public function getExpertComptable(): ?PodcastExpertComptable
{
return $this->expertComptable;
}
public function setExpertComptable(?PodcastExpertComptable $expertComptable): self
{
$this->expertComptable = $expertComptable;
return $this;
}
}