src/Entity/PageSatellite.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PageSatelliteRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassPageSatelliteRepository::class)]
  9. class PageSatellite
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $titre null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $alias_url null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?bool $sommaire_affiche null;
  21.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  22.     private ?string $content null;
  23.     #[ORM\ManyToMany(targetEntityService::class, inversedBy'pageSatellites')]
  24.     private Collection $services;
  25.     #[ORM\ManyToMany(targetEntityDocument::class, inversedBy'pageSatellites')]
  26.     private Collection $documents;
  27.     #[ORM\ManyToMany(targetEntityContact::class, inversedBy'pageSatellites')]
  28.     private Collection $contacts;
  29.     #[ORM\ManyToOne(inversedBy'pageSatellites')]
  30.     private ?RssArticle $nordinfo_rss null;
  31.     #[ORM\ManyToOne(inversedBy'pageSatellites')]
  32.     private ?Statut $statut null;
  33.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  34.     private ?string $chapo null;
  35.     #[ORM\ManyToMany(targetEntityEpingle::class, inversedBy'pageSatellites')]
  36.     private Collection $epingles;
  37.     public function __construct()
  38.     {
  39.         $this->services = new ArrayCollection();
  40.         $this->documents = new ArrayCollection();
  41.         $this->contacts = new ArrayCollection();
  42.         $this->epingles = new ArrayCollection();
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getTitre(): ?string
  49.     {
  50.         return $this->titre;
  51.     }
  52.     public function setTitre(?string $titre): self
  53.     {
  54.         $this->titre $titre;
  55.         return $this;
  56.     }
  57.     public function getAliasUrl(): ?string
  58.     {
  59.         return $this->alias_url;
  60.     }
  61.     public function setAliasUrl(?string $alias_url): self
  62.     {
  63.         $this->alias_url $alias_url;
  64.         return $this;
  65.     }
  66.     public function isSommaireAffiche(): ?bool
  67.     {
  68.         return $this->sommaire_affiche;
  69.     }
  70.     public function setSommaireAffiche(?bool $sommaire_affiche): self
  71.     {
  72.         $this->sommaire_affiche $sommaire_affiche;
  73.         return $this;
  74.     }
  75.     public function getContent(): ?string
  76.     {
  77.         return $this->content;
  78.     }
  79.     public function setContent(?string $content): self
  80.     {
  81.         $this->content $content;
  82.         return $this;
  83.     }
  84.     /**
  85.      * @return Collection<int, Service>
  86.      */
  87.     public function getServices(): Collection
  88.     {
  89.         return $this->services;
  90.     }
  91.     public function addService(Service $service): self
  92.     {
  93.         if (!$this->services->contains($service)) {
  94.             $this->services->add($service);
  95.         }
  96.         return $this;
  97.     }
  98.     public function removeService(Service $service): self
  99.     {
  100.         $this->services->removeElement($service);
  101.         return $this;
  102.     }
  103.     /**
  104.      * @return Collection<int, Document>
  105.      */
  106.     public function getDocuments(): Collection
  107.     {
  108.         return $this->documents;
  109.     }
  110.     public function addDocument(Document $document): self
  111.     {
  112.         if (!$this->documents->contains($document)) {
  113.             $this->documents->add($document);
  114.         }
  115.         return $this;
  116.     }
  117.     public function removeDocument(Document $document): self
  118.     {
  119.         $this->documents->removeElement($document);
  120.         return $this;
  121.     }
  122.     /**
  123.      * @return Collection<int, Contact>
  124.      */
  125.     public function getContacts(): Collection
  126.     {
  127.         return $this->contacts;
  128.     }
  129.     public function addContact(Contact $contact): self
  130.     {
  131.         if (!$this->contacts->contains($contact)) {
  132.             $this->contacts->add($contact);
  133.         }
  134.         return $this;
  135.     }
  136.     public function removeContact(Contact $contact): self
  137.     {
  138.         $this->contacts->removeElement($contact);
  139.         return $this;
  140.     }
  141.     public function getNordinfoRss(): ?RssArticle
  142.     {
  143.         return $this->nordinfo_rss;
  144.     }
  145.     public function setNordinfoRss(?RssArticle $nordinfo_rss): self
  146.     {
  147.         $this->nordinfo_rss $nordinfo_rss;
  148.         return $this;
  149.     }
  150.     public function getStatut(): ?Statut
  151.     {
  152.         return $this->statut;
  153.     }
  154.     public function setStatut(?Statut $statut): self
  155.     {
  156.         $this->statut $statut;
  157.         return $this;
  158.     }
  159.     public function getChapo(): ?string
  160.     {
  161.         return $this->chapo;
  162.     }
  163.     public function setChapo(?string $chapo): self
  164.     {
  165.         $this->chapo $chapo;
  166.         return $this;
  167.     }
  168.     /**
  169.      * @return Collection<int, Epingle>
  170.      */
  171.     public function getEpingles(): Collection
  172.     {
  173.         return $this->epingles;
  174.     }
  175.     public function addEpingle(Epingle $epingle): self
  176.     {
  177.         if (!$this->epingles->contains($epingle)) {
  178.             $this->epingles->add($epingle);
  179.         }
  180.         return $this;
  181.     }
  182.     public function removeEpingle(Epingle $epingle): self
  183.     {
  184.         $this->epingles->removeElement($epingle);
  185.         return $this;
  186.     }
  187. }