src/Entity/PodcastExpertComptable.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PodcastExpertComptableRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. // PodcastExpertComptable représente les experts-comptables pour place à l'expert-comptable
  8. #[ORM\Entity(repositoryClassPodcastExpertComptableRepository::class)]
  9. class PodcastExpertComptable
  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'length255nullabletrue)]
  18.     private $lastname;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $job;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private $token;
  23.     #[ORM\Column(type'string'length255nullabletrue)]
  24.     private $url;
  25.     #[ORM\Column(type'string'length255nullabletrue)]
  26.     private $email;
  27.     #[ORM\Column(type'string'length255nullabletrue)]
  28.     private $address;
  29.     #[ORM\Column(type'string'length10nullabletrue)]
  30.     private $zipcode;
  31.     #[ORM\Column(type'string'length255nullabletrue)]
  32.     private $city;
  33.     #[ORM\Column(type'float'nullabletrue)]
  34.     private $lat;
  35.     #[ORM\Column(type'float'nullabletrue)]
  36.     private $lon;
  37.     #[ORM\OneToMany(mappedBy'expertComptable'targetEntityPodcastHost::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  38.     private $hosts;
  39.     /**
  40.      * @var string
  41.      *
  42.      */
  43.     #[ORM\Column(type'string'length50nullabletrue)]
  44.     private $colorprimary "#82CD18";
  45.     /**
  46.      * @var string
  47.      *
  48.      */
  49.     #[ORM\Column(type'string'length50nullabletrue)]
  50.     private $colorsecondary "#FF6000";
  51.     #[ORM\OneToMany(mappedBy'podcastExpert'targetEntityPodcastEpisode::class)]
  52.     private $podcastEpisodes;
  53.     #[ORM\OneToMany(mappedBy'podcastExpertComptable'targetEntityPodcastEpisode::class)]
  54.     private $podcastEpisodesEc;
  55.     #[ORM\Column(type'boolean'nullabletrue)]
  56.     private $darkTheme;
  57.     #[ORM\Column(type'string'length255nullabletrue)]
  58.     private $compagnyName;
  59.     #[ORM\Column(type'string'length255nullabletrue)]
  60.     private $compagnyUrl;
  61.   public function __construct()
  62.   {
  63.     $this->podcastEpisodes = new ArrayCollection();
  64.     $this->hosts = new ArrayCollection();
  65.     $this->podcastEpisodesEc = new ArrayCollection();
  66.   }
  67.     public function getId(): ?int
  68.     {
  69.         return $this->id;
  70.     }
  71.     public function getFirstname(): ?string
  72.     {
  73.         return $this->firstname;
  74.     }
  75.     public function setFirstname(string $firstname): self
  76.     {
  77.         $this->firstname $firstname;
  78.         return $this;
  79.     }
  80.     public function getLastname(): ?string
  81.     {
  82.         return $this->lastname;
  83.     }
  84.     public function setLastname(?string $lastname): self
  85.     {
  86.         $this->lastname $lastname;
  87.         return $this;
  88.     }
  89.     public function getJob(): ?string
  90.     {
  91.         return $this->job;
  92.     }
  93.     public function setJob(?string $job): self
  94.     {
  95.         $this->job $job;
  96.         return $this;
  97.     }
  98.     public function getToken(): ?string
  99.     {
  100.         return $this->token;
  101.     }
  102.     public function setToken(?string $token): self
  103.     {
  104.         $this->token $token;
  105.         return $this;
  106.     }
  107.     public function getUrl(): ?string
  108.     {
  109.         return $this->url;
  110.     }
  111.     public function setUrl(?string $url): self
  112.     {
  113.         $this->url $url;
  114.         return $this;
  115.     }
  116.     public function getEmail(): ?string
  117.     {
  118.       return $this->email;
  119.     }
  120.     public function setEmail(?string $email): self
  121.     {
  122.         $this->email $email;
  123.         return $this;
  124.     }
  125.     public function getAddress(): ?string
  126.     {
  127.         return $this->address;
  128.     }
  129.     public function setAddress(?string $address): self
  130.     {
  131.         $this->address $address;
  132.         return $this;
  133.     }
  134.     public function getZipcode(): ?string
  135.     {
  136.         return $this->zipcode;
  137.     }
  138.     public function setZipcode(?string $zipcode): self
  139.     {
  140.         $this->zipcode $zipcode;
  141.         return $this;
  142.     }
  143.     public function getCity(): ?string
  144.     {
  145.         return $this->city;
  146.     }
  147.     public function setCity(?string $city): self
  148.     {
  149.         $this->city $city;
  150.         return $this;
  151.     }
  152.     public function getLat(): ?float
  153.     {
  154.         return $this->lat;
  155.     }
  156.     public function setLat(?float $lat): self
  157.     {
  158.         $this->lat $lat;
  159.         return $this;
  160.     }
  161.     public function getLon(): ?float
  162.     {
  163.         return $this->lon;
  164.     }
  165.     public function setLon(?float $lon): self
  166.     {
  167.         $this->lon $lon;
  168.         return $this;
  169.     }
  170.     /**
  171.      * @return Collection<int, PodcastHost>
  172.      */
  173.   public function getHosts(): Collection
  174.   {
  175.     return $this->hosts;
  176.   }
  177.   public function addHost(PodcastHost $domain): self
  178.   {
  179.     if (!$this->hosts->contains($domain)) {
  180.       $this->hosts[] = $domain;
  181.       $domain->setExpertComptable($this);
  182.     }
  183.     return $this;
  184.   }
  185.   public function removeHost(PodcastHost $domain): self
  186.   {
  187.     if ($this->hosts->removeElement($domain)) {
  188.       // set the owning side to null (unless already changed)
  189.       if ($domain->getExpertComptable() === $this) {
  190.         $domain->setExpertComptable(null);
  191.       }
  192.     }
  193.     return $this;
  194.   }
  195.   public function getListHosts(): array
  196.   {
  197.     $result = [];
  198.     /** @var PodcastHost $domain */
  199.     foreach ($this->hosts as $domain) {
  200.       $result[] = $domain->getDomain();
  201.     }
  202.     return $result;
  203.   }
  204.   /**
  205.    * @return Collection<int, PodcastEpisode>
  206.    */
  207.   public function getPodcastEpisodes(): Collection
  208.   {
  209.     return $this->podcastEpisodes;
  210.   }
  211.   public function getColorprimary(): ?string
  212.   {
  213.     return $this->colorprimary;
  214.   }
  215.   public function setColorprimary(?string $colorprimary): self
  216.   {
  217.     $this->colorprimary $colorprimary;
  218.     return $this;
  219.   }
  220.   public function getColorsecondary(): ?string
  221.   {
  222.     return $this->colorsecondary;
  223.   }
  224.   public function setColorsecondary(?string $colorsecondary): self
  225.   {
  226.     $this->colorsecondary $colorsecondary;
  227.     return $this;
  228.   }
  229.   /**
  230.    * @return Collection<int, PodcastEpisode>
  231.    */
  232.   public function getPodcastEpisodesEc(): Collection
  233.   {
  234.       return $this->podcastEpisodesEc;
  235.   }
  236.   public function addPodcastEpisodesEc(PodcastEpisode $podcastEpisodesEc): self
  237.   {
  238.       if (!$this->podcastEpisodesEc->contains($podcastEpisodesEc)) {
  239.           $this->podcastEpisodesEc[] = $podcastEpisodesEc;
  240.           $podcastEpisodesEc->setPodcastExpertComptable($this);
  241.       }
  242.       return $this;
  243.   }
  244.   public function removePodcastEpisodesEc(PodcastEpisode $podcastEpisodesEc): self
  245.   {
  246.       if ($this->podcastEpisodesEc->removeElement($podcastEpisodesEc)) {
  247.           // set the owning side to null (unless already changed)
  248.           if ($podcastEpisodesEc->getPodcastExpertComptable() === $this) {
  249.               $podcastEpisodesEc->setPodcastExpertComptable(null);
  250.           }
  251.       }
  252.       return $this;
  253.   }
  254.   public function isDarkTheme(): ?bool
  255.   {
  256.       return $this->darkTheme;
  257.   }
  258.   public function setDarkTheme(?bool $darkTheme): self
  259.   {
  260.       $this->darkTheme $darkTheme;
  261.       return $this;
  262.   }
  263.   public function getCompagnyName(): ?string
  264.   {
  265.       return $this->compagnyName;
  266.   }
  267.   public function setCompagnyName(?string $compagnyName): self
  268.   {
  269.       $this->compagnyName $compagnyName;
  270.       return $this;
  271.   }
  272.   public function getCompagnyUrl(): ?string
  273.   {
  274.       return $this->compagnyUrl;
  275.   }
  276.   public function setCompagnyUrl(?string $compagnyUrl): self
  277.   {
  278.       $this->compagnyUrl $compagnyUrl;
  279.       return $this;
  280.   }
  281. }