src/Entity/Post.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PostRepository;
  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. use Stringable;
  9. use Symfony\Component\HttpFoundation\File\File;
  10. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  11. /**
  12.  * @Vich\Uploadable
  13.  */
  14. #[ORM\Entity(repositoryClassPostRepository::class)]
  15. class Post implements Stringable
  16. {
  17.     #[ORM\Id]
  18.     #[ORM\GeneratedValue]
  19.     #[ORM\Column(type'integer')]
  20.     private ?int $id 0;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private ?string $illustrationfil_name null;
  23.     /**
  24.      * @Vich\UploadableField(mapping="images", fileNameProperty="illustrationfil_name")
  25.      */
  26.     private ?File $illustrationfil null;
  27.     #[ORM\Column(type'string'length255nullabletrue)]
  28.     private ?string $illustrationdetail_name null;
  29.     /**
  30.      * @Vich\UploadableField(mapping="images", fileNameProperty="illustrationdetail_name")
  31.      */
  32.     private ?File $illustrationdetail null;
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     private ?string $document_name1 null;
  35.     /**
  36.      * @Vich\UploadableField(mapping="documents", fileNameProperty="document_name1")
  37.      */
  38.     private ?File $document1 null;
  39.     #[ORM\Column(type'string'length255nullabletrue)]
  40.     private ?string $document_name2 null;
  41.     /**
  42.      * @Vich\UploadableField(mapping="documents", fileNameProperty="document_name2")
  43.      */
  44.     private ?File $document2 null;
  45.     #[ORM\Column(type'string'length255nullabletrue)]
  46.     private ?string $document_name3 null;
  47.     /**
  48.      * @Vich\UploadableField(mapping="documents", fileNameProperty="document_name3")
  49.      */
  50.     private ?File $document3 null;
  51.     #[ORM\Column(type'text'nullabletrue)]
  52.     private ?string $image_urlnull;
  53.     #[ORM\Column(type'text'nullabletrue)]
  54.     private ?string $thumb_urlnull;
  55.     #[ORM\ManyToOne(targetEntityPostType::class, inversedBy'posts')]
  56.     private  $type;
  57.     #[ORM\Column(type'string'length255nullabletrue)]
  58.     private ?string $titlenull;
  59.     #[ORM\Column(type'text'nullabletrue)]
  60.     private ?string $short_descriptionnull;
  61.     #[ORM\Column(type'string'length255nullabletrue)]
  62.     private ?string $content_durationnull;
  63.     #[ORM\Column(type'string'length255nullabletrue)]
  64.     private ?string $restrictionnull;
  65.     #[ORM\ManyToMany(targetEntityTopic::class, inversedBy'posts')]
  66.     private  $topics;
  67.     #[ORM\ManyToMany(targetEntityTerritory::class, inversedBy'posts')]
  68.     private  $territories;
  69.     #[ORM\Column(type'string'length255nullabletrue)]
  70.     private ?string $statenull;
  71.     #[ORM\Column(type'string'length255nullabletrue)]
  72.     private ?string $suggested_bynull;
  73.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'created_posts')]
  74.     #[ORM\JoinColumn(onDelete'SET NULL')]
  75.     private  $created_by;
  76.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'updated_posts')]
  77.     #[ORM\JoinColumn(onDelete'SET NULL')]
  78.     private  $updated_by;
  79.     #[ORM\ManyToMany(targetEntityContact::class, inversedBy'posts')]
  80.     private  $contacts;
  81.     #[ORM\ManyToMany(targetEntityOrganization::class, inversedBy'posts')]
  82.     private  $organizations;
  83.     #[ORM\ManyToMany(targetEntityAttachment::class, inversedBy'posts')]
  84.     private  $attachments;
  85.     #[ORM\ManyToMany(targetEntityLink::class, inversedBy'posts')]
  86.     private  $links;
  87.     #[ORM\ManyToMany(targetEntityPost::class, inversedBy'posts')]
  88.     private  $related_posts;
  89.     #[ORM\ManyToMany(targetEntityPost::class, mappedBy'related_posts')]
  90.     private  $posts;
  91.     #[ORM\Column(type'string'length255nullabletrue)]
  92.     private ?string $published_atnull;
  93.     #[ORM\Column(type'string'length255nullabletrue)]
  94.     private ?string $created_atnull;
  95.     #[ORM\Column(type'string'length255nullabletrue)]
  96.     private ?string $updated_atnull;
  97.     #[ORM\JoinColumn(nullablefalse)]
  98.     #[ORM\ManyToOne(targetEntityStatut::class, inversedBy'posts')]
  99.     private  $status;
  100.     #[ORM\ManyToOne(targetEntityContact::class, cascade: ['persist'], inversedBy'posts1')]
  101.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  102.     private  $contact1;
  103.     #[ORM\ManyToOne(targetEntityContact::class, cascade: ['persist'], inversedBy'posts2')]
  104.     #[ORM\JoinColumn(onDelete'SET NULL')]
  105.     private  $contact2;
  106.     #[ORM\ManyToOne(targetEntityContact::class, cascade: ['persist'], inversedBy'posts3')]
  107.     #[ORM\JoinColumn(onDelete'SET NULL')]
  108.     private  $contact3;
  109.     #[ORM\ManyToOne(targetEntityOrganization::class, inversedBy'posts1')]
  110.     #[ORM\JoinColumn(onDelete'SET NULL')]
  111.     private  $organisation1;
  112.     #[ORM\ManyToOne(targetEntityOrganization::class, inversedBy'posts2')]
  113.     #[ORM\JoinColumn(onDelete'SET NULL')]
  114.     private  $organisation2;
  115.     #[ORM\ManyToOne(targetEntityOrganization::class, inversedBy'posts3')]
  116.     #[ORM\JoinColumn(onDelete'SET NULL')]
  117.     private  $organisation3;
  118.     #[ORM\ManyToOne(targetEntityPost::class, cascade: ['persist'], inversedBy'posts1')]
  119.     #[ORM\JoinColumn(onDelete'SET NULL')]
  120.     private  $related_post1;
  121.     #[ORM\OneToMany(mappedBy'related_post1'targetEntityPost::class, cascade: ['persist'])]
  122.     #[ORM\JoinColumn(onDelete'SET NULL')]
  123.     private  $posts1;
  124.     #[ORM\ManyToOne(targetEntityPost::class, cascade: ['persist'], inversedBy'posts2')]
  125.     #[ORM\JoinColumn(onDelete'SET NULL')]
  126.     private  $related_post2;
  127.     #[ORM\OneToMany(mappedBy'related_post2'targetEntityPost::class, cascade: ['persist'])]
  128.     #[ORM\JoinColumn(onDelete'SET NULL')]
  129.     private  $posts2;
  130.     #[ORM\ManyToOne(targetEntityPost::class, cascade: ['persist'], inversedBy'posts3')]
  131.     #[ORM\JoinColumn(onDelete'SET NULL')]
  132.     private  $related_post3;
  133.     #[ORM\OneToMany(mappedBy'related_post3'targetEntityPost::class, cascade: ['persist'])]
  134.     #[ORM\JoinColumn(onDelete'SET NULL')]
  135.     private  $posts3;
  136.     #[ORM\Column(type'string'length255nullabletrue)]
  137.     private ?string $link1null;
  138.     #[ORM\Column(type'text'nullabletrue)]
  139.     private ?string $url1null;
  140.     #[ORM\Column(type'string'length255nullabletrue)]
  141.     private ?string $link2null;
  142.     #[ORM\Column(type'string'length255nullabletrue)]
  143.     private ?string $url2null;
  144.     #[ORM\Column(type'string'length255nullabletrue)]
  145.     private ?string $link3null;
  146.     #[ORM\Column(type'string'length255nullabletrue)]
  147.     private ?string $url3null;
  148.     #[ORM\Column(type'string'length255nullabletrue)]
  149.     private ?string $date_debutnull;
  150.     #[ORM\Column(type'string'length255nullabletrue)]
  151.     private ?string $date_finnull;
  152.     #[ORM\Column(type'text'nullabletrue)]
  153.     private ?string $commentairesnull;
  154.     #[ORM\Column(type'string'length255nullabletrue)]
  155.     private ?string $subtitlenull;
  156.     #[ORM\Column(type'text'nullabletrue)]
  157.     private ?string $chaponull;
  158.     #[ORM\ManyToOne(targetEntityPaletteCouleur::class, inversedBy'posts')]
  159.     private  $palettecouleur;
  160.     #[ORM\Column(type'text'nullabletrue)]
  161.     private ?string $horairesnull;
  162.     #[ORM\Column(type'text'nullabletrue)]
  163.     private ?string $tarifsnull;
  164.     #[ORM\Column(type'string'length255nullabletrue)]
  165.     private ?string $lieunull;
  166.     #[ORM\Column(type'string'length255nullabletrue)]
  167.     private ?string $villenull;
  168.     #[ORM\Column(type'string'length255nullabletrue)]
  169.     private ?string $creditsnull;
  170.     #[ORM\Column(type'text'nullabletrue)]
  171.     private ?string $contentnull;
  172.     #[ORM\Column(type'boolean'nullabletrueoptions: ['default' => 0])]
  173.     private ?bool $defautFil;
  174.     #[ORM\Column(type'boolean'nullablefalseoptions: ['default' => 0])]
  175.     private ?bool $epingle1;
  176.     #[ORM\Column(type'boolean'nullablefalseoptions: ['default' => 0])]
  177.     private ?bool $epingle2;
  178.     #[ORM\Column(type'string'length255nullabletrue)]
  179.     private ?string $organizedBynull;
  180.     #[ORM\ManyToMany(targetEntityTags::class, mappedBy'contenus')]
  181.     private  $tags;
  182.     #[ORM\OneToMany(mappedBy'related_post1'targetEntityPages::class)]
  183.     #[ORM\JoinColumn(onDelete'SET NULL')]
  184.     private  $pages1;
  185.     #[ORM\OneToMany(mappedBy'related_post2'targetEntityPages::class)]
  186.     #[ORM\JoinColumn(onDelete'SET NULL')]
  187.     private  $pages2;
  188.     #[ORM\OneToMany(mappedBy'related_post3'targetEntityPages::class)]
  189.     #[ORM\JoinColumn(onDelete'SET NULL')]
  190.     private  $pages3;
  191.     #[ORM\Column(type'boolean'nullabletrue)]
  192.     private ?bool $bool_date_maj false;
  193.     #[ORM\Column(type'string'length255nullabletrue)]
  194.     private ?string $updated_date_displaynull;
  195.     #[ORM\ManyToMany(targetEntityTargetPublic::class, inversedBy'posts')]
  196.     private  $targetpublics;
  197.     #[ORM\Column(type'string'length255nullabletrue)]
  198.     private ?string $slugnull;
  199.     #[ORM\Column(type'string'length255nullabletrue)]
  200.     private ?string $date_dernier_statutnull;
  201.     #[ORM\ManyToOne(targetEntityStatut::class, inversedBy'oldposts')]
  202.     private  $old_status;
  203.     #[ORM\Column(type'string'length255nullabletrue)]
  204.     private ?string $dureenull;
  205.     #[ORM\Column(type'boolean'nullabletrue)]
  206.     private ?bool $bool_actu false;
  207.     #[ORM\ManyToMany(targetEntityPostReponses::class, inversedBy'posts'cascade: ['persist''remove'])]
  208.     private $reponses;
  209.     #[ORM\Column(type'boolean'nullabletrue)]
  210.     private ?bool $grand_format false;
  211.     #[ORM\Column(type'integer'nullabletrue)]
  212.     private ?int $like_count;
  213.     #[ORM\Column(type'integer'nullabletrue)]
  214.     private ?int $comment_count;
  215.     #[ORM\ManyToMany(targetEntityFil::class, inversedBy'posts')]
  216.     private  $fils;
  217.     #[ORM\Column(type'boolean'nullabletrue)]
  218.     private ?bool $in_use;
  219.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'posts')]
  220.     private  $edit_user;
  221.     #[ORM\Column(type'datetime'nullabletrue)]
  222.     private  $edit_date;
  223.     #[ORM\Column(type'text'nullabletrue)]
  224.     private ?string $organisation4null;
  225.     #[ORM\Column(type'boolean'nullabletrue)]
  226.     private ?bool $affichage_type_map;
  227.     #[ORM\Column(type'boolean'nullabletrue)]
  228.     private ?bool $affichage_type_map2;
  229.     #[ORM\Column(type'boolean'nullabletrue)]
  230.     private ?bool $affichage_type_map3;
  231.     #[ORM\OneToMany(mappedBy'post'targetEntityPostCommentaires::class)]
  232.     private  $postCommentaires;
  233.     #[ORM\ManyToMany(targetEntityEventType::class, inversedBy'posts')]
  234.     private  $event_type;
  235.     #[ORM\Column(type'string'length255nullabletrue)]
  236.     private ?string $musee_namenull;
  237.     #[ORM\Column(type'integer'nullabletrue)]
  238.     private ?int $musee_id;
  239.     #[ORM\ManyToOne(targetEntityPlacementImage::class, inversedBy'posts')]
  240.     private  $position_image;
  241.     #[ORM\ManyToMany(targetEntityUser::class, mappedBy'favoris')]
  242.     private  $users;
  243.     #[ORM\Column(type'integer'nullabletrue)]
  244.     private ?int $order_folder;
  245.     #[ORM\Column(type'integer'nullabletrue)]
  246.     private ?int $order_tag;
  247.     #[ORM\ManyToMany(targetEntityRssArticle::class, mappedBy'posts')]
  248.     private  $rssArticles;
  249.     #[ORM\ManyToMany(targetEntityRssEvent::class, mappedBy'posts')]
  250.     private  $rssEvents;
  251.     #[ORM\ManyToMany(targetEntityRssArticle::class, mappedBy'posts_exclus')]
  252.     private  $rssArticlesExclus;
  253.     #[ORM\ManyToMany(targetEntityRssEvent::class, mappedBy'posts_exclus')]
  254.     private  $rssEventsExclus;
  255.     #[ORM\Column(type'integer'nullabletrue)]
  256.     private ?int $openagenda_id;
  257.     #[ORM\Column(type'boolean'nullabletrue)]
  258.     private ?bool $archive false;
  259.     #[ORM\Column(type'datetime'nullabletrue)]
  260.     private  $date_update;
  261.     #[ORM\Column(type'text'nullabletrue)]
  262.     private ?string $json null;
  263.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  264.     private ?string $openagenda_lieu null;
  265.     #[ORM\Column(length255nullabletrue)]
  266.     private ?string $openagenda_name null;
  267.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  268.     private ?string $markdown_description null;
  269.     #[ORM\Column(length255nullabletrue)]
  270.     private ?string $musee_type null;
  271.     #[ORM\ManyToOne(inversedBy'posts')]
  272.     private ?Lieu $lieu_new null;
  273.     #[ORM\ManyToOne]
  274.     private ?CouleurDePost $couleur null;
  275.     #[ORM\ManyToOne]
  276.     private ?CouleurDePost $CouleurModeNuit null;
  277.     #[ORM\ManyToOne]
  278.     private ?CouleurDePost $couleur_texte null;
  279.     public function __construct()
  280.     {
  281.         $this->topics = new ArrayCollection();
  282.         $this->territories = new ArrayCollection();
  283.         $this->contacts = new ArrayCollection();
  284.         $this->organizations = new ArrayCollection();
  285.         $this->attachments = new ArrayCollection();
  286.         $this->links = new ArrayCollection();
  287.         $this->related_posts = new ArrayCollection();
  288.         $this->posts1 = new ArrayCollection();
  289.         $this->posts2 = new ArrayCollection();
  290.         $this->posts3 = new ArrayCollection();
  291.         $this->tags = new ArrayCollection();
  292.         $this->pages1 = new ArrayCollection();
  293.         $this->pages2 = new ArrayCollection();
  294.         $this->pages3 = new ArrayCollection();
  295.         $this->targetpublics = new ArrayCollection();
  296.         $this->reponses = new ArrayCollection();
  297.         $this->fils = new ArrayCollection();
  298.         $this->postCommentaires = new ArrayCollection();
  299.         $this->event_type = new ArrayCollection();
  300.         $this->users = new ArrayCollection();
  301.         $this->rssArticles = new ArrayCollection();
  302.         $this->rssEvents = new ArrayCollection();
  303.         $this->rssArticlesExclus = new ArrayCollection();
  304.         $this->rssEventsExclus = new ArrayCollection();
  305.         $this->posts = new ArrayCollection();
  306.     }
  307.     /**
  308.      * @return Collection|Post[]
  309.      */
  310.     public function getPosts(): Collection
  311.     {
  312.         return $this->posts;
  313.     }
  314.     public function addPost(Post $post): self
  315.     {
  316.         if (!$this->posts->contains($post)) {
  317.             $this->posts[] = $post;
  318.             $post->addRelatedPost($this);
  319.         }
  320.         return $this;
  321.     }
  322.     public function removePost(Post $post): self
  323.     {
  324.         if ($this->posts->contains($post)) {
  325.             $this->posts->removeElement($post);
  326.             $post->removeRelatedPost($this);
  327.         }
  328.         return $this;
  329.     }
  330.     public function setDocument1(File $file null): void
  331.     {
  332.         $this->document1 $file;
  333.         if ($file) {
  334.             $date_update = new \DateTime('now');
  335.             $this->updated_at $date_update->format('d/m/Y');
  336.         }
  337.     }
  338.     public function getDocument1()
  339.     {
  340.         return $this->document1;
  341.     }
  342.     public function getDocumentName1(): ?string
  343.     {
  344.         return $this->document_name1;
  345.     }
  346.     public function setDocumentName1(string $filename null): self
  347.     {
  348.         $this->document_name1 $filename;
  349.         return $this;
  350.     }
  351.     public function setDocument2(File $file null): void
  352.     {
  353.         $this->document2 $file;
  354.         if ($file) {
  355.             $date_update = new \DateTime('now');
  356.             $this->updated_at $date_update->format('d/m/Y');
  357.         }
  358.     }
  359.     public function getDocument2()
  360.     {
  361.         return $this->document2;
  362.     }
  363.     public function getDocumentName2(): ?string
  364.     {
  365.         return $this->document_name2;
  366.     }
  367.     public function setDocumentName2(string $filename null): self
  368.     {
  369.         $this->document_name2 $filename;
  370.         return $this;
  371.     }
  372.     public function setDocument3(File $file null): void
  373.     {
  374.         $this->document3 $file;
  375.         if ($file) {
  376.             $date_update = new \DateTime('now');
  377.             $this->updated_at $date_update->format('d/m/Y');
  378.         }
  379.     }
  380.     public function getDocument3()
  381.     {
  382.         return $this->document3;
  383.     }
  384.     public function getDocumentName3(): ?string
  385.     {
  386.         return $this->document_name3;
  387.     }
  388.     public function setDocumentName3(string $filename null): self
  389.     {
  390.         $this->document_name3 $filename;
  391.         return $this;
  392.     }
  393.     public function setIllustrationfil(File $file null): void
  394.     {
  395.         $this->illustrationfil $file;
  396.         if ($file) {
  397.             $date_update = new \DateTime('now');
  398.             $this->updated_at $date_update->format('d/m/Y');
  399.         }
  400.     }
  401.     public function getIllustrationfil()
  402.     {
  403.         return $this->illustrationfil;
  404.     }
  405.     public function getIllustrationfilName(): ?string
  406.     {
  407.         return $this->illustrationfil_name;
  408.     }
  409.     public function setIllustrationfilName(string $filename null): self
  410.     {
  411.         $this->illustrationfil_name $filename;
  412.         return $this;
  413.     }
  414.     public function setIllustrationdetail(File $file null): void
  415.     {
  416.         $this->illustrationdetail $file;
  417.         if ($file) {
  418.             $date_update = new \DateTime('now');
  419.             $this->updated_at $date_update->format('d/m/Y');
  420.         }
  421.     }
  422.     public function getIllustrationdetail()
  423.     {
  424.         return $this->illustrationdetail;
  425.     }
  426.     public function getIllustrationdetailName(): ?string
  427.     {
  428.         return $this->illustrationdetail_name;
  429.     }
  430.     public function setIllustrationdetailName(string $filename null): self
  431.     {
  432.         $this->illustrationdetail_name $filename;
  433.         return $this;
  434.     }
  435.     public function getId(): int
  436.     {
  437.         return $this->id;
  438.     }
  439.     public function getImageUrl(): ?string
  440.     {
  441.         return $this->image_url;
  442.     }
  443.     public function setImageUrl(?string $image_url): self
  444.     {
  445.         $this->image_url $image_url;
  446.         return $this;
  447.     }
  448.     public function getThumbUrl(): ?string
  449.     {
  450.         return $this->thumb_url;
  451.     }
  452.     public function setThumbUrl(?string $thumb_url): self
  453.     {
  454.         $this->thumb_url $thumb_url;
  455.         return $this;
  456.     }
  457.     public function getType(): ?PostType
  458.     {
  459.         return $this->type;
  460.     }
  461.     public function setType(?PostType $type): self
  462.     {
  463.         $this->type $type;
  464.         return $this;
  465.     }
  466.     public function getTitle(): ?string
  467.     {
  468.         return $this->title;
  469.     }
  470.     public function setTitle(?string $title): self
  471.     {
  472.         $this->title $title;
  473.         return $this;
  474.     }
  475.     public function getShortDescription(): ?string
  476.     {
  477.         return $this->short_description;
  478.     }
  479.     public function setShortDescription(?string $short_description): self
  480.     {
  481.         $this->short_description $short_description;
  482.         return $this;
  483.     }
  484.     public function getContentDuration(): ?string
  485.     {
  486.         return $this->content_duration;
  487.     }
  488.     public function setContentDuration(?string $content_duration): self
  489.     {
  490.         $this->content_duration $content_duration;
  491.         return $this;
  492.     }
  493.     public function getRestriction(): ?string
  494.     {
  495.         return $this->restriction;
  496.     }
  497.     public function setRestriction(?string $restriction): self
  498.     {
  499.         $this->restriction $restriction;
  500.         return $this;
  501.     }
  502.     /**
  503.      * @return Collection|Topic[]
  504.      */
  505.     public function getTopics(): Collection
  506.     {
  507.         return $this->topics;
  508.     }
  509.     public function addTopic(Topic $topic): self
  510.     {
  511.         if (!$this->topics->contains($topic)) {
  512.             $this->topics[] = $topic;
  513.         }
  514.         return $this;
  515.     }
  516.     public function removeTopic(Topic $topic): self
  517.     {
  518.         if ($this->topics->contains($topic)) {
  519.             $this->topics->removeElement($topic);
  520.         }
  521.         return $this;
  522.     }
  523.     /**
  524.      * @return Collection|Territory[]
  525.      */
  526.     public function getTerritories(): Collection
  527.     {
  528.         return $this->territories;
  529.     }
  530.     public function addTerritory(Territory $territory): self
  531.     {
  532.         if (!$this->territories->contains($territory)) {
  533.             $this->territories[] = $territory;
  534.         }
  535.         return $this;
  536.     }
  537.     public function removeTerritory(Territory $territory): self
  538.     {
  539.         if ($this->territories->contains($territory)) {
  540.             $this->territories->removeElement($territory);
  541.         }
  542.         return $this;
  543.     }
  544.     public function getState(): ?string
  545.     {
  546.         return $this->state;
  547.     }
  548.     public function setState(?string $state): self
  549.     {
  550.         $this->state $state;
  551.         return $this;
  552.     }
  553.     public function getSuggestedBy(): ?string
  554.     {
  555.         return $this->suggested_by;
  556.     }
  557.     public function setSuggestedBy(?string $suggested_by): self
  558.     {
  559.         $this->suggested_by $suggested_by;
  560.         return $this;
  561.     }
  562.     public function getCreatedBy(): ?User
  563.     {
  564.         return $this->created_by;
  565.     }
  566.     public function setCreatedBy(?User $created_by): self
  567.     {
  568.         $this->created_by $created_by;
  569.         return $this;
  570.     }
  571.     public function getUpdatedBy(): ?User
  572.     {
  573.         return $this->updated_by;
  574.     }
  575.     public function setUpdatedBy(?User $updated_by): self
  576.     {
  577.         $this->updated_by $updated_by;
  578.         return $this;
  579.     }
  580.     /**
  581.      * @return Collection|Contact[]
  582.      */
  583.     public function getContacts(): Collection
  584.     {
  585.         return $this->contacts;
  586.     }
  587.     public function addContact(Contact $contact): self
  588.     {
  589.         if (!$this->contacts->contains($contact)) {
  590.             $this->contacts[] = $contact;
  591.         }
  592.         return $this;
  593.     }
  594.     public function removeContact(Contact $contact): self
  595.     {
  596.         if ($this->contacts->contains($contact)) {
  597.             $this->contacts->removeElement($contact);
  598.         }
  599.         return $this;
  600.     }
  601.     /**
  602.      * @return Collection|Organization[]
  603.      */
  604.     public function getOrganizations(): Collection
  605.     {
  606.         return $this->organizations;
  607.     }
  608.     public function addOrganization(Organization $organization): self
  609.     {
  610.         if (!$this->organizations->contains($organization)) {
  611.             $this->organizations[] = $organization;
  612.         }
  613.         return $this;
  614.     }
  615.     public function removeOrganization(Organization $organization): self
  616.     {
  617.         if ($this->organizations->contains($organization)) {
  618.             $this->organizations->removeElement($organization);
  619.         }
  620.         return $this;
  621.     }
  622.     /**
  623.      * @return Collection|Attachment[]
  624.      */
  625.     public function getAttachments(): Collection
  626.     {
  627.         return $this->attachments;
  628.     }
  629.     public function addAttachment(Attachment $attachment): self
  630.     {
  631.         if (!$this->attachments->contains($attachment)) {
  632.             $this->attachments[] = $attachment;
  633.         }
  634.         return $this;
  635.     }
  636.     public function removeAttachment(Attachment $attachment): self
  637.     {
  638.         if ($this->attachments->contains($attachment)) {
  639.             $this->attachments->removeElement($attachment);
  640.         }
  641.         return $this;
  642.     }
  643.     /**
  644.      * @return Collection|Link[]
  645.      */
  646.     public function getLinks(): Collection
  647.     {
  648.         return $this->links;
  649.     }
  650.     public function addLink(Link $link): self
  651.     {
  652.         if (!$this->links->contains($link)) {
  653.             $this->links[] = $link;
  654.         }
  655.         return $this;
  656.     }
  657.     public function removeLink(Link $link): self
  658.     {
  659.         if ($this->links->contains($link)) {
  660.             $this->links->removeElement($link);
  661.         }
  662.         return $this;
  663.     }
  664.     /**
  665.      * @return Collection|self[]
  666.      */
  667.     public function getRelatedPosts(): Collection
  668.     {
  669.         return $this->related_posts;
  670.     }
  671.     public function setRelatedPosts(Collection $related_posts): self
  672.     {
  673.         $this->related_posts $related_posts;
  674.         return $this;
  675.     }
  676.     public function addRelatedPost(self $relatedPost): self
  677.     {
  678.         if (!$this->related_posts->contains($relatedPost)) {
  679.             $this->related_posts[] = $relatedPost;
  680.         }
  681.         return $this;
  682.     }
  683.     public function removeRelatedPost(self $relatedPost): self
  684.     {
  685.         if ($this->related_posts->contains($relatedPost)) {
  686.             $this->related_posts->removeElement($relatedPost);
  687.         }
  688.         return $this;
  689.     }
  690.     public function getPublishedAt(): ?string
  691.     {
  692.         return $this->published_at;
  693.     }
  694.     public function setPublishedAt(?string $published_at): self
  695.     {
  696.         $this->published_at $published_at;
  697.         return $this;
  698.     }
  699.     public function getCreatedAt(): ?string
  700.     {
  701.         return $this->created_at;
  702.     }
  703.     public function setCreatedAt(string $created_at): self
  704.     {
  705.         $this->created_at $created_at;
  706.         return $this;
  707.     }
  708.     public function getUpdatedAt(): ?string
  709.     {
  710.         return $this->updated_at;
  711.     }
  712.     public function setUpdatedAt(?string $updated_at): self
  713.     {
  714.         $this->updated_at $updated_at;
  715.         return $this;
  716.     }
  717.     public function getStatus(): ?Statut
  718.     {
  719.         return $this->status;
  720.     }
  721.     public function setStatus(?Statut $status): self
  722.     {
  723.         $this->status $status;
  724.         return $this;
  725.     }
  726.     public function getContact1(): ?Contact
  727.     {
  728.         return $this->contact1;
  729.     }
  730.     public function setContact1(?Contact $contact1): self
  731.     {
  732.         $this->contact1 $contact1;
  733.         return $this;
  734.     }
  735.     public function getContact2(): ?Contact
  736.     {
  737.         return $this->contact2;
  738.     }
  739.     public function setContact2(?Contact $contact2): self
  740.     {
  741.         $this->contact2 $contact2;
  742.         return $this;
  743.     }
  744.     public function getContact3(): ?Contact
  745.     {
  746.         return $this->contact3;
  747.     }
  748.     public function setContact3(?Contact $contact3): self
  749.     {
  750.         $this->contact3 $contact3;
  751.         return $this;
  752.     }
  753.     public function getOrganisation1(): ?Organization
  754.     {
  755.         return $this->organisation1;
  756.     }
  757.     public function setOrganisation1(?Organization $organisation1): self
  758.     {
  759.         $this->organisation1 $organisation1;
  760.         return $this;
  761.     }
  762.     public function getOrganisation2(): ?Organization
  763.     {
  764.         return $this->organisation2;
  765.     }
  766.     public function setOrganisation2(?Organization $organisation2): self
  767.     {
  768.         $this->organisation2 $organisation2;
  769.         return $this;
  770.     }
  771.     public function getOrganisation3(): ?Organization
  772.     {
  773.         return $this->organisation3;
  774.     }
  775.     public function setOrganisation3(?Organization $organisation3): self
  776.     {
  777.         $this->organisation3 $organisation3;
  778.         return $this;
  779.     }
  780.     public function getRelatedPost1(): ?self
  781.     {
  782.         return $this->related_post1;
  783.     }
  784.     public function setRelatedPost1(?self $related_post1): self
  785.     {
  786.         $this->related_post1 $related_post1;
  787.         return $this;
  788.     }
  789.     /**
  790.      * @return Collection|self[]
  791.      */
  792.     public function getPosts1(): Collection
  793.     {
  794.         return $this->posts1;
  795.     }
  796.     public function addPosts1(self $posts1): self
  797.     {
  798.         if (!$this->posts1->contains($posts1)) {
  799.             $this->posts1[] = $posts1;
  800.             $posts1->setRelatedPost1($this);
  801.         }
  802.         return $this;
  803.     }
  804.     public function removePosts1(self $posts1): self
  805.     {
  806.         if ($this->posts1->contains($posts1)) {
  807.             $this->posts1->removeElement($posts1);
  808.             // set the owning side to null (unless already changed)
  809.             if ($posts1->getRelatedPost1() === $this) {
  810.                 $posts1->setRelatedPost1(null);
  811.             }
  812.         }
  813.         return $this;
  814.     }
  815.     public function getRelatedPost2(): ?self
  816.     {
  817.         return $this->related_post2;
  818.     }
  819.     public function setRelatedPost2(?self $related_post2): self
  820.     {
  821.         $this->related_post2 $related_post2;
  822.         return $this;
  823.     }
  824.     /**
  825.      * @return Collection|self[]
  826.      */
  827.     public function getPosts2(): Collection
  828.     {
  829.         return $this->posts2;
  830.     }
  831.     public function addPosts2(self $posts2): self
  832.     {
  833.         if (!$this->posts2->contains($posts2)) {
  834.             $this->posts2[] = $posts2;
  835.             $posts2->setRelatedPost2($this);
  836.         }
  837.         return $this;
  838.     }
  839.     public function removePosts2(self $posts2): self
  840.     {
  841.         if ($this->posts2->contains($posts2)) {
  842.             $this->posts2->removeElement($posts2);
  843.             // set the owning side to null (unless already changed)
  844.             if ($posts2->getRelatedPost2() === $this) {
  845.                 $posts2->setRelatedPost2(null);
  846.             }
  847.         }
  848.         return $this;
  849.     }
  850.     public function getRelatedPost3(): ?self
  851.     {
  852.         return $this->related_post3;
  853.     }
  854.     public function setRelatedPost3(?self $related_post3): self
  855.     {
  856.         $this->related_post3 $related_post3;
  857.         return $this;
  858.     }
  859.     /**
  860.      * @return Collection|self[]
  861.      */
  862.     public function getPosts3(): Collection
  863.     {
  864.         return $this->posts3;
  865.     }
  866.     public function addPosts3(self $posts3): self
  867.     {
  868.         if (!$this->posts3->contains($posts3)) {
  869.             $this->posts3[] = $posts3;
  870.             $posts3->setRelatedPost3($this);
  871.         }
  872.         return $this;
  873.     }
  874.     public function removePosts3(self $posts3): self
  875.     {
  876.         if ($this->posts3->contains($posts3)) {
  877.             $this->posts3->removeElement($posts3);
  878.             // set the owning side to null (unless already changed)
  879.             if ($posts3->getRelatedPost3() === $this) {
  880.                 $posts3->setRelatedPost3(null);
  881.             }
  882.         }
  883.         return $this;
  884.     }
  885.     public function getLink1(): ?string
  886.     {
  887.         return $this->link1;
  888.     }
  889.     public function setLink1(?string $link1): self
  890.     {
  891.         $this->link1 $link1;
  892.         return $this;
  893.     }
  894.     public function getUrl1(): ?string
  895.     {
  896.         return $this->url1;
  897.     }
  898.     public function setUrl1(?string $url1): self
  899.     {
  900.         $this->url1 $url1;
  901.         return $this;
  902.     }
  903.     public function getLink2(): ?string
  904.     {
  905.         return $this->link2;
  906.     }
  907.     public function setLink2(?string $link2): self
  908.     {
  909.         $this->link2 $link2;
  910.         return $this;
  911.     }
  912.     public function getUrl2(): ?string
  913.     {
  914.         return $this->url2;
  915.     }
  916.     public function setUrl2(?string $url2): self
  917.     {
  918.         $this->url2 $url2;
  919.         return $this;
  920.     }
  921.     public function getLink3(): ?string
  922.     {
  923.         return $this->link3;
  924.     }
  925.     public function setLink3(?string $link3): self
  926.     {
  927.         $this->link3 $link3;
  928.         return $this;
  929.     }
  930.     public function getUrl3(): ?string
  931.     {
  932.         return $this->url3;
  933.     }
  934.     public function setUrl3(?string $url3): self
  935.     {
  936.         $this->url3 $url3;
  937.         return $this;
  938.     }
  939.     public function getDateDebut(): ?string
  940.     {
  941.         return $this->date_debut;
  942.     }
  943.     public function setDateDebut(?string $date_debut): self
  944.     {
  945.         $this->date_debut $date_debut;
  946.         return $this;
  947.     }
  948.     public function getDateFin(): ?string
  949.     {
  950.         return $this->date_fin;
  951.     }
  952.     public function setDateFin(?string $date_fin): self
  953.     {
  954.         $this->date_fin $date_fin;
  955.         return $this;
  956.     }
  957.     public function getCommentaires(): ?string
  958.     {
  959.         return $this->commentaires;
  960.     }
  961.     public function setCommentaires(?string $commentaires): self
  962.     {
  963.         $this->commentaires $commentaires;
  964.         return $this;
  965.     }
  966.     public function getSubtitle(): ?string
  967.     {
  968.         return $this->subtitle;
  969.     }
  970.     public function setSubtitle(?string $subtitle): self
  971.     {
  972.         $this->subtitle $subtitle;
  973.         return $this;
  974.     }
  975.     public function getChapo(): ?string
  976.     {
  977.         return $this->chapo;
  978.     }
  979.     public function setChapo(?string $chapo): self
  980.     {
  981.         $this->chapo $chapo;
  982.         return $this;
  983.     }
  984.     public function getPalettecouleur(): ?PaletteCouleur
  985.     {
  986.         return $this->palettecouleur;
  987.     }
  988.     public function setPalettecouleur(?PaletteCouleur $palettecouleur): self
  989.     {
  990.         $this->palettecouleur $palettecouleur;
  991.         return $this;
  992.     }
  993.     public function getHoraires(): ?string
  994.     {
  995.         return $this->horaires;
  996.     }
  997.     public function setHoraires(?string $horaires): self
  998.     {
  999.         $this->horaires $horaires;
  1000.         return $this;
  1001.     }
  1002.     public function getTarifs(): ?string
  1003.     {
  1004.         return $this->tarifs;
  1005.     }
  1006.     public function setTarifs(?string $tarifs): self
  1007.     {
  1008.         $this->tarifs $tarifs;
  1009.         return $this;
  1010.     }
  1011.     public function getLieu(): ?string
  1012.     {
  1013.         return $this->lieu;
  1014.     }
  1015.     public function setLieu(?string $lieu): self
  1016.     {
  1017.         $this->lieu $lieu;
  1018.         return $this;
  1019.     }
  1020.     public function getVille(): ?string
  1021.     {
  1022.         return $this->ville;
  1023.     }
  1024.     public function setVille(?string $ville): self
  1025.     {
  1026.         $this->ville $ville;
  1027.         return $this;
  1028.     }
  1029.     public function __toString(): string
  1030.     {
  1031.         return $this->id ' - ' $this->title ' - ' $this->getType()->getDisplayName() . ' - ' $this->getStatus()->getName();
  1032.     }
  1033.     public function getCredits(): ?string
  1034.     {
  1035.         return $this->credits;
  1036.     }
  1037.     public function setCredits(?string $credits): self
  1038.     {
  1039.         $this->credits $credits;
  1040.         return $this;
  1041.     }
  1042.     public function getContent(): ?string
  1043.     {
  1044.         return $this->content;
  1045.     }
  1046.     public function setContent(?string $content): self
  1047.     {
  1048.         $this->content $content;
  1049.         return $this;
  1050.     }
  1051.     public function getDefautFil(): ?bool
  1052.     {
  1053.         return $this->defautFil;
  1054.     }
  1055.     public function setDefautFil(?bool $defautFil): self
  1056.     {
  1057.         $this->defautFil $defautFil;
  1058.         return $this;
  1059.     }
  1060.     public function getEpingle1(): ?bool
  1061.     {
  1062.         return $this->epingle1;
  1063.     }
  1064.     public function setEpingle1(?bool $epingle1): self
  1065.     {
  1066.         $this->epingle1 $epingle1;
  1067.         return $this;
  1068.     }
  1069.     public function getEpingle2(): ?bool
  1070.     {
  1071.         return $this->epingle2;
  1072.     }
  1073.     public function setEpingle2(?bool $epingle2): self
  1074.     {
  1075.         $this->epingle2 $epingle2;
  1076.         return $this;
  1077.     }
  1078.     public function getOrganizedBy(): ?string
  1079.     {
  1080.         return $this->organizedBy;
  1081.     }
  1082.     public function setOrganizedBy(?string $organizedBy): self
  1083.     {
  1084.         $this->organizedBy $organizedBy;
  1085.         return $this;
  1086.     }
  1087.     /**
  1088.      * @return Collection|Tags[]
  1089.      */
  1090.     public function getTags(): Collection
  1091.     {
  1092.         return $this->tags;
  1093.     }
  1094.     public function addTag(Tags $tag): self
  1095.     {
  1096.         if (!$this->tags->contains($tag)) {
  1097.             $this->tags[] = $tag;
  1098.             $tag->addContenus($this);
  1099.         }
  1100.         return $this;
  1101.     }
  1102.     public function removeTag(Tags $tag): self
  1103.     {
  1104.         if ($this->tags->contains($tag)) {
  1105.             $this->tags->removeElement($tag);
  1106.             $tag->removeContenus($this);
  1107.         }
  1108.         return $this;
  1109.     }
  1110.     /**
  1111.      * @return Collection|Pages[]
  1112.      */
  1113.     public function getPages1(): Collection
  1114.     {
  1115.         return $this->pages1;
  1116.     }
  1117.     public function addPages1(Pages $pages1): self
  1118.     {
  1119.         if (!$this->pages1->contains($pages1)) {
  1120.             $this->pages1[] = $pages1;
  1121.             $pages1->setRelatedPost1($this);
  1122.         }
  1123.         return $this;
  1124.     }
  1125.     public function removePages1(Pages $pages1): self
  1126.     {
  1127.         if ($this->pages1->contains($pages1)) {
  1128.             $this->pages1->removeElement($pages1);
  1129.             // set the owning side to null (unless already changed)
  1130.             if ($pages1->getRelatedPost1() === $this) {
  1131.                 $pages1->setRelatedPost1(null);
  1132.             }
  1133.         }
  1134.         return $this;
  1135.     }
  1136.     /**
  1137.      * @return Collection|Pages[]
  1138.      */
  1139.     public function getPages2(): Collection
  1140.     {
  1141.         return $this->pages2;
  1142.     }
  1143.     public function addPages2(Pages $pages2): self
  1144.     {
  1145.         if (!$this->pages2->contains($pages2)) {
  1146.             $this->pages2[] = $pages2;
  1147.             $pages2->setRelatedPost2($this);
  1148.         }
  1149.         return $this;
  1150.     }
  1151.     public function removePages2(Pages $pages2): self
  1152.     {
  1153.         if ($this->pages2->contains($pages2)) {
  1154.             $this->pages2->removeElement($pages2);
  1155.             // set the owning side to null (unless already changed)
  1156.             if ($pages2->getRelatedPost2() === $this) {
  1157.                 $pages2->setRelatedPost2(null);
  1158.             }
  1159.         }
  1160.         return $this;
  1161.     }
  1162.     /**
  1163.      * @return Collection|Pages[]
  1164.      */
  1165.     public function getPages3(): Collection
  1166.     {
  1167.         return $this->pages3;
  1168.     }
  1169.     public function addPages3(Pages $pages3): self
  1170.     {
  1171.         if (!$this->pages3->contains($pages3)) {
  1172.             $this->pages3[] = $pages3;
  1173.             $pages3->setRelatedPost3($this);
  1174.         }
  1175.         return $this;
  1176.     }
  1177.     public function removePages3(Pages $pages3): self
  1178.     {
  1179.         if ($this->pages3->contains($pages3)) {
  1180.             $this->pages3->removeElement($pages3);
  1181.             // set the owning side to null (unless already changed)
  1182.             if ($pages3->getRelatedPost3() === $this) {
  1183.                 $pages3->setRelatedPost3(null);
  1184.             }
  1185.         }
  1186.         return $this;
  1187.     }
  1188.     public function getBoolDateMaj(): ?bool
  1189.     {
  1190.         return $this->bool_date_maj;
  1191.     }
  1192.     public function setBoolDateMaj(?bool $bool_date_maj): self
  1193.     {
  1194.         $this->bool_date_maj $bool_date_maj;
  1195.         return $this;
  1196.     }
  1197.     public function getUpdatedDateDisplay(): ?string
  1198.     {
  1199.         return $this->updated_date_display;
  1200.     }
  1201.     public function setUpdatedDateDisplay(?string $updated_date_display): self
  1202.     {
  1203.         $this->updated_date_display $updated_date_display;
  1204.         return $this;
  1205.     }
  1206.     /**
  1207.      * @return Collection|TargetPublic[]
  1208.      */
  1209.     public function getTargetpublics(): Collection
  1210.     {
  1211.         return $this->targetpublics;
  1212.     }
  1213.     public function addTargetpublic(TargetPublic $targetpublic): self
  1214.     {
  1215.         if (!$this->targetpublics->contains($targetpublic)) {
  1216.             $this->targetpublics[] = $targetpublic;
  1217.         }
  1218.         return $this;
  1219.     }
  1220.     public function removeTargetpublic(TargetPublic $targetpublic): self
  1221.     {
  1222.         if ($this->targetpublics->contains($targetpublic)) {
  1223.             $this->targetpublics->removeElement($targetpublic);
  1224.         }
  1225.         return $this;
  1226.     }
  1227.     public function getSlug(): ?string
  1228.     {
  1229.         return $this->slug;
  1230.     }
  1231.     public function setSlug(?string $slug): self
  1232.     {
  1233.         $this->slug $slug;
  1234.         return $this;
  1235.     }
  1236.     public function getDateDernierStatut(): ?string
  1237.     {
  1238.         return $this->date_dernier_statut;
  1239.     }
  1240.     public function setDateDernierStatut(?string $date_dernier_statut): self
  1241.     {
  1242.         $this->date_dernier_statut $date_dernier_statut;
  1243.         return $this;
  1244.     }
  1245.     public function getOldStatus(): ?Statut
  1246.     {
  1247.         return $this->old_status;
  1248.     }
  1249.     public function setOldStatus(?Statut $old_status): self
  1250.     {
  1251.         $this->old_status $old_status;
  1252.         return $this;
  1253.     }
  1254.     public function getDuree(): ?string
  1255.     {
  1256.         return $this->duree;
  1257.     }
  1258.     public function setDuree(?string $duree): self
  1259.     {
  1260.         $this->duree $duree;
  1261.         return $this;
  1262.     }
  1263.     public function getBoolActu(): ?bool
  1264.     {
  1265.         return $this->bool_actu;
  1266.     }
  1267.     public function setBoolActu(?bool $bool_actu): self
  1268.     {
  1269.         $this->bool_actu $bool_actu;
  1270.         return $this;
  1271.     }
  1272.     /**
  1273.      * @return Collection|PostReponses[]
  1274.      */
  1275.     public function getReponses(): Collection
  1276.     {
  1277.         return $this->reponses;
  1278.     }
  1279.     public function addReponse(PostReponses $reponse): self
  1280.     {
  1281.         if (!$this->reponses->contains($reponse)) {
  1282.             $this->reponses[] = $reponse;
  1283.         }
  1284.         return $this;
  1285.     }
  1286.     public function removeReponse(PostReponses $reponse): self
  1287.     {
  1288.         if ($this->reponses->contains($reponse)) {
  1289.             $this->reponses->removeElement($reponse);
  1290.         }
  1291.         return $this;
  1292.     }
  1293.     public function getGrandFormat(): ?bool
  1294.     {
  1295.         return $this->grand_format;
  1296.     }
  1297.     public function setGrandFormat(?bool $grand_format): self
  1298.     {
  1299.         $this->grand_format $grand_format;
  1300.         return $this;
  1301.     }
  1302.     public function getLikeCount(): ?int
  1303.     {
  1304.         return $this->like_count;
  1305.     }
  1306.     public function setLikeCount(?int $like_count): self
  1307.     {
  1308.         $this->like_count $like_count;
  1309.         return $this;
  1310.     }
  1311.     public function getCommentCount(): ?int
  1312.     {
  1313.         return $this->comment_count;
  1314.     }
  1315.     public function setCommentCount(?int $comment_count): self
  1316.     {
  1317.         $this->comment_count $comment_count;
  1318.         return $this;
  1319.     }
  1320.     /**
  1321.      * @return Collection|Fil[]
  1322.      */
  1323.     public function getFils(): Collection
  1324.     {
  1325.         return $this->fils;
  1326.     }
  1327.     public function addFil(Fil $fil): self
  1328.     {
  1329.         if (!$this->fils->contains($fil)) {
  1330.             $this->fils[] = $fil;
  1331.         }
  1332.         return $this;
  1333.     }
  1334.     public function removeFil(Fil $fil): self
  1335.     {
  1336.         if ($this->fils->contains($fil)) {
  1337.             $this->fils->removeElement($fil);
  1338.         }
  1339.         return $this;
  1340.     }
  1341.     public function getInUse(): ?bool
  1342.     {
  1343.         return $this->in_use;
  1344.     }
  1345.     public function setInUse(?bool $in_use): self
  1346.     {
  1347.         $this->in_use $in_use;
  1348.         return $this;
  1349.     }
  1350.     public function getEditUser(): ?User
  1351.     {
  1352.         return $this->edit_user;
  1353.     }
  1354.     public function setEditUser(?User $edit_user): self
  1355.     {
  1356.         $this->edit_user $edit_user;
  1357.         return $this;
  1358.     }
  1359.     public function getEditDate(): ?\DateTimeInterface
  1360.     {
  1361.         return $this->edit_date;
  1362.     }
  1363.     public function setEditDate(?\DateTimeInterface $edit_date): self
  1364.     {
  1365.         $this->edit_date $edit_date;
  1366.         return $this;
  1367.     }
  1368.     public function getOrganisation4(): ?string
  1369.     {
  1370.         return $this->organisation4;
  1371.     }
  1372.     public function setOrganisation4(?string $organisation4): self
  1373.     {
  1374.         $this->organisation4 $organisation4;
  1375.         return $this;
  1376.     }
  1377.     public function getAffichageTypeMap(): ?bool
  1378.     {
  1379.         return $this->affichage_type_map;
  1380.     }
  1381.     public function setAffichageTypeMap(?bool $affichage_type_map): self
  1382.     {
  1383.         $this->affichage_type_map $affichage_type_map;
  1384.         return $this;
  1385.     }
  1386.     public function getAffichageTypeMap2(): ?bool
  1387.     {
  1388.         return $this->affichage_type_map2;
  1389.     }
  1390.     public function setAffichageTypeMap2(?bool $affichage_type_map2): self
  1391.     {
  1392.         $this->affichage_type_map2 $affichage_type_map2;
  1393.         return $this;
  1394.     }
  1395.     public function getAffichageTypeMap3(): ?bool
  1396.     {
  1397.         return $this->affichage_type_map3;
  1398.     }
  1399.     public function setAffichageTypeMap3(?bool $affichage_type_map3): self
  1400.     {
  1401.         $this->affichage_type_map3 $affichage_type_map3;
  1402.         return $this;
  1403.     }
  1404.     /**
  1405.      * @return Collection|PostCommentaires[]
  1406.      */
  1407.     public function getPostCommentaires(): Collection
  1408.     {
  1409.         return $this->postCommentaires;
  1410.     }
  1411.     public function addPostCommentaire(PostCommentaires $postCommentaire): self
  1412.     {
  1413.         if (!$this->postCommentaires->contains($postCommentaire)) {
  1414.             $this->postCommentaires[] = $postCommentaire;
  1415.             $postCommentaire->setPost($this);
  1416.         }
  1417.         return $this;
  1418.     }
  1419.     public function removePostCommentaire(PostCommentaires $postCommentaire): self
  1420.     {
  1421.         if ($this->postCommentaires->contains($postCommentaire)) {
  1422.             $this->postCommentaires->removeElement($postCommentaire);
  1423.             // set the owning side to null (unless already changed)
  1424.             if ($postCommentaire->getPost() === $this) {
  1425.                 $postCommentaire->setPost(null);
  1426.             }
  1427.         }
  1428.         return $this;
  1429.     }
  1430.     /**
  1431.      * @return Collection|EventType[]
  1432.      */
  1433.     public function getEventType(): Collection
  1434.     {
  1435.         return $this->event_type;
  1436.     }
  1437.     public function addEventType(EventType $eventType): self
  1438.     {
  1439.         if (!$this->event_type->contains($eventType)) {
  1440.             $this->event_type[] = $eventType;
  1441.         }
  1442.         return $this;
  1443.     }
  1444.     public function removeEventType(EventType $eventType): self
  1445.     {
  1446.         if ($this->event_type->contains($eventType)) {
  1447.             $this->event_type->removeElement($eventType);
  1448.         }
  1449.         return $this;
  1450.     }
  1451.     public function getMuseeName(): ?string
  1452.     {
  1453.         return $this->musee_name;
  1454.     }
  1455.     public function setMuseeName(?string $musee_name): self
  1456.     {
  1457.         $this->musee_name $musee_name;
  1458.         return $this;
  1459.     }
  1460.     public function getMuseeId(): ?int
  1461.     {
  1462.         return $this->musee_id;
  1463.     }
  1464.     public function setMuseeId(?int $musee_id): self
  1465.     {
  1466.         $this->musee_id $musee_id;
  1467.         return $this;
  1468.     }
  1469.     public function getPositionImage(): ?PlacementImage
  1470.     {
  1471.         return $this->position_image;
  1472.     }
  1473.     public function setPositionImage(?PlacementImage $position_image): self
  1474.     {
  1475.         $this->position_image $position_image;
  1476.         return $this;
  1477.     }
  1478.     /**
  1479.      * @return Collection|User[]
  1480.      */
  1481.     public function getUsers(): Collection
  1482.     {
  1483.         return $this->users;
  1484.     }
  1485.     public function addUser(User $user): self
  1486.     {
  1487.         if (!$this->users->contains($user)) {
  1488.             $this->users[] = $user;
  1489.             $user->addFavori($this);
  1490.         }
  1491.         return $this;
  1492.     }
  1493.     public function removeUser(User $user): self
  1494.     {
  1495.         if ($this->users->contains($user)) {
  1496.             $this->users->removeElement($user);
  1497.             $user->removeFavori($this);
  1498.         }
  1499.         return $this;
  1500.     }
  1501.     public function getOrderFolder(): ?int
  1502.     {
  1503.         return $this->order_folder;
  1504.     }
  1505.     public function setOrderFolder(?int $order_folder): self
  1506.     {
  1507.         $this->order_folder $order_folder;
  1508.         return $this;
  1509.     }
  1510.     public function getOrderTag(): ?int
  1511.     {
  1512.         return $this->order_tag;
  1513.     }
  1514.     public function setOrderTag(?int $order_tag): self
  1515.     {
  1516.         $this->order_tag $order_tag;
  1517.         return $this;
  1518.     }
  1519.     /**
  1520.      * @return Collection|RssArticle[]
  1521.      */
  1522.     public function getRssArticles(): Collection
  1523.     {
  1524.         return $this->rssArticles;
  1525.     }
  1526.     public function addRssArticle(RssArticle $rssArticle): self
  1527.     {
  1528.         if (!$this->rssArticles->contains($rssArticle)) {
  1529.             $this->rssArticles[] = $rssArticle;
  1530.             $rssArticle->addPost($this);
  1531.         }
  1532.         return $this;
  1533.     }
  1534.     public function removeRssArticle(RssArticle $rssArticle): self
  1535.     {
  1536.         if ($this->rssArticles->contains($rssArticle)) {
  1537.             $this->rssArticles->removeElement($rssArticle);
  1538.             $rssArticle->removePost($this);
  1539.         }
  1540.         return $this;
  1541.     }
  1542.     /**
  1543.      * @return Collection|RssEvent[]
  1544.      */
  1545.     public function getRssEvents(): Collection
  1546.     {
  1547.         return $this->rssEvents;
  1548.     }
  1549.     public function addRssEvent(RssEvent $rssEvent): self
  1550.     {
  1551.         if (!$this->rssEvents->contains($rssEvent)) {
  1552.             $this->rssEvents[] = $rssEvent;
  1553.             $rssEvent->addPost($this);
  1554.         }
  1555.         return $this;
  1556.     }
  1557.     public function removeRssEvent(RssEvent $rssEvent): self
  1558.     {
  1559.         if ($this->rssEvents->contains($rssEvent)) {
  1560.             $this->rssEvents->removeElement($rssEvent);
  1561.             $rssEvent->removePost($this);
  1562.         }
  1563.         return $this;
  1564.     }
  1565.     /**
  1566.      * @return Collection|RssArticle[]
  1567.      */
  1568.     public function getRssArticlesExclus(): Collection
  1569.     {
  1570.         return $this->rssArticlesExclus;
  1571.     }
  1572.     public function addRssArticlesExclu(RssArticle $rssArticlesExclu): self
  1573.     {
  1574.         if (!$this->rssArticlesExclus->contains($rssArticlesExclu)) {
  1575.             $this->rssArticlesExclus[] = $rssArticlesExclu;
  1576.             $rssArticlesExclu->addPostsExclu($this);
  1577.         }
  1578.         return $this;
  1579.     }
  1580.     public function removeRssArticlesExclu(RssArticle $rssArticlesExclu): self
  1581.     {
  1582.         if ($this->rssArticlesExclus->removeElement($rssArticlesExclu)) {
  1583.             $rssArticlesExclu->removePostsExclu($this);
  1584.         }
  1585.         return $this;
  1586.     }
  1587.     /**
  1588.      * @return Collection|RssEvent[]
  1589.      */
  1590.     public function getRssEventsExclus(): Collection
  1591.     {
  1592.         return $this->rssEventsExclus;
  1593.     }
  1594.     public function addRssEventsExclu(RssEvent $rssEventsExclu): self
  1595.     {
  1596.         if (!$this->rssEventsExclus->contains($rssEventsExclu)) {
  1597.             $this->rssEventsExclus[] = $rssEventsExclu;
  1598.             $rssEventsExclu->addPostsExclu($this);
  1599.         }
  1600.         return $this;
  1601.     }
  1602.     public function removeRssEventsExclu(RssEvent $rssEventsExclu): self
  1603.     {
  1604.         if ($this->rssEventsExclus->removeElement($rssEventsExclu)) {
  1605.             $rssEventsExclu->removePostsExclu($this);
  1606.         }
  1607.         return $this;
  1608.     }
  1609.     public function getOpenagendaId(): ?int
  1610.     {
  1611.         return $this->openagenda_id;
  1612.     }
  1613.     public function setOpenagendaId(?int $openagenda_id): self
  1614.     {
  1615.         $this->openagenda_id $openagenda_id;
  1616.         return $this;
  1617.     }
  1618.     public function getArchive(): ?bool
  1619.     {
  1620.         return $this->archive;
  1621.     }
  1622.     public function setArchive(?bool $archive): self
  1623.     {
  1624.         $this->archive $archive;
  1625.         return $this;
  1626.     }
  1627.     public function getDateUpdate(): ?\DateTimeInterface
  1628.     {
  1629.         return $this->date_update;
  1630.     }
  1631.     public function setDateUpdate(?\DateTimeInterface $date_update): self
  1632.     {
  1633.         $this->date_update $date_update;
  1634.         return $this;
  1635.     }
  1636.     public function getJson(): ?string
  1637.     {
  1638.         return $this->json;
  1639.     }
  1640.     public function setJson(?string $json): self
  1641.     {
  1642.         $this->json $json;
  1643.         return $this;
  1644.     }
  1645.     public function getOpenagendaLieu(): ?string
  1646.     {
  1647.         return $this->openagenda_lieu;
  1648.     }
  1649.     public function setOpenagendaLieu(?string $openagenda_lieu): self
  1650.     {
  1651.         $this->openagenda_lieu $openagenda_lieu;
  1652.         return $this;
  1653.     }
  1654.     public function getOpenagendaName(): ?string
  1655.     {
  1656.         return $this->openagenda_name;
  1657.     }
  1658.     public function setOpenagendaName(?string $openagenda_name): self
  1659.     {
  1660.         $this->openagenda_name $openagenda_name;
  1661.         return $this;
  1662.     }
  1663.     public function getMarkdownDescription(): ?string
  1664.     {
  1665.         return $this->markdown_description;
  1666.     }
  1667.     public function setMarkdownDescription(?string $markdown_description): self
  1668.     {
  1669.         $this->markdown_description $markdown_description;
  1670.         return $this;
  1671.     }
  1672.     public function getMuseeType(): ?string
  1673.     {
  1674.         return $this->musee_type;
  1675.     }
  1676.     public function setMuseeType(?string $musee_type): self
  1677.     {
  1678.         $this->musee_type $musee_type;
  1679.         return $this;
  1680.     }
  1681.     public function getLieuNew(): ?Lieu
  1682.     {
  1683.         return $this->lieu_new;
  1684.     }
  1685.     public function setLieuNew(?Lieu $lieu_new): static
  1686.     {
  1687.         $this->lieu_new $lieu_new;
  1688.         return $this;
  1689.     }
  1690.     public function getCouleur(): ?CouleurDePost
  1691.     {
  1692.         return $this->couleur;
  1693.     }
  1694.     public function setCouleur(?CouleurDePost $couleur): static
  1695.     {
  1696.         $this->couleur $couleur;
  1697.         return $this;
  1698.     }
  1699.     public function getCouleurModeNuit(): ?CouleurDePost
  1700.     {
  1701.         return $this->CouleurModeNuit;
  1702.     }
  1703.     public function setCouleurModeNuit(?CouleurDePost $CouleurModeNuit): static
  1704.     {
  1705.         $this->CouleurModeNuit $CouleurModeNuit;
  1706.         return $this;
  1707.     }
  1708.     public function getCouleurTexte(): ?CouleurDePost
  1709.     {
  1710.         return $this->couleur_texte;
  1711.     }
  1712.     public function setCouleurTexte(?CouleurDePost $couleur_texte): static
  1713.     {
  1714.         $this->couleur_texte $couleur_texte;
  1715.         return $this;
  1716.     }
  1717. }