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