src/Entity/PodcastExpert.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\PodcastExpertRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. // PodcastExpert représente les experts pour place à l'expert
  8. #[ORM\Entity(repositoryClassPodcastExpertRepository::class)]
  9. class PodcastExpert
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     private $id;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $firstname;
  17.     #[ORM\Column(type'string'length16777215nullabletrue)]
  18.     private $lastname;
  19.     #[ORM\Column(type'text'length16777215nullabletrue)]
  20.     private $job;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private $email;
  23.     #[ORM\Column(type'string'length255nullabletrue)]
  24.     private $address;
  25.     #[ORM\Column(type'string'length10nullabletrue)]
  26.     private $zipcode;
  27.     #[ORM\Column(type'string'length255nullabletrue)]
  28.     private $city;
  29.     #[ORM\Column(type'float'nullabletrue)]
  30.     private $lat;
  31.     #[ORM\Column(type'float'nullabletrue)]
  32.     private $lon;
  33.     #[ORM\OneToMany(mappedBy'podcastExpert'targetEntityPodcastPrivate::class)]
  34.     private $podcastPrivates;
  35.     public function __construct()
  36.     {
  37.       $this->podcastPrivates = new ArrayCollection();
  38.     }
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getFirstname(): ?string
  44.     {
  45.         return $this->firstname;
  46.     }
  47.     public function setFirstname(?string $firstname): self
  48.     {
  49.         $this->firstname $firstname;
  50.         return $this;
  51.     }
  52.     public function getLastname(): ?string
  53.     {
  54.         return $this->lastname;
  55.     }
  56.     public function setLastname(?string $lastname): self
  57.     {
  58.         $this->lastname $lastname;
  59.         return $this;
  60.     }
  61.     public function getJob(): ?string
  62.     {
  63.         return $this->job;
  64.     }
  65.     public function setJob(?string $job): self
  66.     {
  67.         $this->job $job;
  68.         return $this;
  69.     }
  70.     public function getEmail(): ?string
  71.     {
  72.         return $this->email;
  73.     }
  74.     public function setEmail(?string $email): self
  75.     {
  76.         $this->email $email;
  77.         return $this;
  78.     }
  79.     public function getAddress(): ?string
  80.     {
  81.         return $this->address;
  82.     }
  83.     public function setAddress(?string $address): self
  84.     {
  85.         $this->address $address;
  86.         return $this;
  87.     }
  88.     public function getZipcode(): ?string
  89.     {
  90.         return $this->zipcode;
  91.     }
  92.     public function setZipcode(?string $zipcode): self
  93.     {
  94.         $this->zipcode $zipcode;
  95.         return $this;
  96.     }
  97.     public function getCity(): ?string
  98.     {
  99.         return $this->city;
  100.     }
  101.     public function setCity(?string $city): self
  102.     {
  103.         $this->city $city;
  104.         return $this;
  105.     }
  106.     public function getLat(): ?float
  107.     {
  108.         return $this->lat;
  109.     }
  110.     public function setLat(?float $lat): self
  111.     {
  112.         $this->lat $lat;
  113.         return $this;
  114.     }
  115.     public function getLon(): ?float
  116.     {
  117.         return $this->lon;
  118.     }
  119.     public function setLon(?float $lon): self
  120.     {
  121.         $this->lon $lon;
  122.         return $this;
  123.     }
  124.     /**
  125.      * @return Collection<int, PodcastPrivate>
  126.      */
  127.     public function getPodcastPrivates(): Collection
  128.     {
  129.         return $this->podcastPrivates;
  130.     }
  131.     public function addPodcastPrivate(PodcastPrivate $podcastPrivate): self
  132.     {
  133.         if (!$this->podcastPrivates->contains($podcastPrivate)) {
  134.             $this->podcastPrivates[] = $podcastPrivate;
  135.             $podcastPrivate->setPodcastExpert($this);
  136.         }
  137.         return $this;
  138.     }
  139.     public function removePodcastPrivate(PodcastPrivate $podcastPrivate): self
  140.     {
  141.         if ($this->podcastPrivates->removeElement($podcastPrivate)) {
  142.             // set the owning side to null (unless already changed)
  143.             if ($podcastPrivate->getPodcastExpert() === $this) {
  144.                 $podcastPrivate->setPodcastExpert(null);
  145.             }
  146.         }
  147.         return $this;
  148.     }
  149. }