<?php
namespace App\Entity;
use App\Repository\PostRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Stringable;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @Vich\Uploadable
*/
#[ORM\Entity(repositoryClass: PostRepository::class)]
class Post implements Stringable
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = 0;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $illustrationfil_name = null;
/**
* @Vich\UploadableField(mapping="images", fileNameProperty="illustrationfil_name")
*/
private ?File $illustrationfil = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $illustrationdetail_name = null;
/**
* @Vich\UploadableField(mapping="images", fileNameProperty="illustrationdetail_name")
*/
private ?File $illustrationdetail = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $document_name1 = null;
/**
* @Vich\UploadableField(mapping="documents", fileNameProperty="document_name1")
*/
private ?File $document1 = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $document_name2 = null;
/**
* @Vich\UploadableField(mapping="documents", fileNameProperty="document_name2")
*/
private ?File $document2 = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $document_name3 = null;
/**
* @Vich\UploadableField(mapping="documents", fileNameProperty="document_name3")
*/
private ?File $document3 = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $image_url= null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $thumb_url= null;
#[ORM\ManyToOne(targetEntity: PostType::class, inversedBy: 'posts')]
private $type;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $title= null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $short_description= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $content_duration= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $restriction= null;
#[ORM\ManyToMany(targetEntity: Topic::class, inversedBy: 'posts')]
private $topics;
#[ORM\ManyToMany(targetEntity: Territory::class, inversedBy: 'posts')]
private $territories;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $state= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $suggested_by= null;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'created_posts')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $created_by;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'updated_posts')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $updated_by;
#[ORM\ManyToMany(targetEntity: Contact::class, inversedBy: 'posts')]
private $contacts;
#[ORM\ManyToMany(targetEntity: Organization::class, inversedBy: 'posts')]
private $organizations;
#[ORM\ManyToMany(targetEntity: Attachment::class, inversedBy: 'posts')]
private $attachments;
#[ORM\ManyToMany(targetEntity: Link::class, inversedBy: 'posts')]
private $links;
#[ORM\ManyToMany(targetEntity: Post::class, inversedBy: 'posts')]
private $related_posts;
#[ORM\ManyToMany(targetEntity: Post::class, mappedBy: 'related_posts')]
private $posts;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $published_at= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $created_at= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $updated_at= null;
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: Statut::class, inversedBy: 'posts')]
private $status;
#[ORM\ManyToOne(targetEntity: Contact::class, cascade: ['persist'], inversedBy: 'posts1')]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
private $contact1;
#[ORM\ManyToOne(targetEntity: Contact::class, cascade: ['persist'], inversedBy: 'posts2')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $contact2;
#[ORM\ManyToOne(targetEntity: Contact::class, cascade: ['persist'], inversedBy: 'posts3')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $contact3;
#[ORM\ManyToOne(targetEntity: Organization::class, inversedBy: 'posts1')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $organisation1;
#[ORM\ManyToOne(targetEntity: Organization::class, inversedBy: 'posts2')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $organisation2;
#[ORM\ManyToOne(targetEntity: Organization::class, inversedBy: 'posts3')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $organisation3;
#[ORM\ManyToOne(targetEntity: Post::class, cascade: ['persist'], inversedBy: 'posts1')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $related_post1;
#[ORM\OneToMany(mappedBy: 'related_post1', targetEntity: Post::class, cascade: ['persist'])]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $posts1;
#[ORM\ManyToOne(targetEntity: Post::class, cascade: ['persist'], inversedBy: 'posts2')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $related_post2;
#[ORM\OneToMany(mappedBy: 'related_post2', targetEntity: Post::class, cascade: ['persist'])]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $posts2;
#[ORM\ManyToOne(targetEntity: Post::class, cascade: ['persist'], inversedBy: 'posts3')]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $related_post3;
#[ORM\OneToMany(mappedBy: 'related_post3', targetEntity: Post::class, cascade: ['persist'])]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $posts3;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $link1= null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $url1= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $link2= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $url2= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $link3= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $url3= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $date_debut= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $date_fin= null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $commentaires= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $subtitle= null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $chapo= null;
#[ORM\ManyToOne(targetEntity: PaletteCouleur::class, inversedBy: 'posts')]
private $palettecouleur;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $horaires= null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $tarifs= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $lieu= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $ville= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $credits= null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $content= null;
#[ORM\Column(type: 'boolean', nullable: true, options: ['default' => 0])]
private ?bool $defautFil;
#[ORM\Column(type: 'boolean', nullable: false, options: ['default' => 0])]
private ?bool $epingle1;
#[ORM\Column(type: 'boolean', nullable: false, options: ['default' => 0])]
private ?bool $epingle2;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $organizedBy= null;
#[ORM\ManyToMany(targetEntity: Tags::class, mappedBy: 'contenus')]
private $tags;
#[ORM\OneToMany(mappedBy: 'related_post1', targetEntity: Pages::class)]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $pages1;
#[ORM\OneToMany(mappedBy: 'related_post2', targetEntity: Pages::class)]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $pages2;
#[ORM\OneToMany(mappedBy: 'related_post3', targetEntity: Pages::class)]
#[ORM\JoinColumn(onDelete: 'SET NULL')]
private $pages3;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $bool_date_maj = false;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $updated_date_display= null;
#[ORM\ManyToMany(targetEntity: TargetPublic::class, inversedBy: 'posts')]
private $targetpublics;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $slug= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $date_dernier_statut= null;
#[ORM\ManyToOne(targetEntity: Statut::class, inversedBy: 'oldposts')]
private $old_status;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $duree= null;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $bool_actu = false;
#[ORM\ManyToMany(targetEntity: PostReponses::class, inversedBy: 'posts', cascade: ['persist', 'remove'])]
private $reponses;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $grand_format = false;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $like_count;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $comment_count;
#[ORM\ManyToMany(targetEntity: Fil::class, inversedBy: 'posts')]
private $fils;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $in_use;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'posts')]
private $edit_user;
#[ORM\Column(type: 'datetime', nullable: true)]
private $edit_date;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $organisation4= null;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $affichage_type_map;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $affichage_type_map2;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $affichage_type_map3;
#[ORM\OneToMany(mappedBy: 'post', targetEntity: PostCommentaires::class)]
private $postCommentaires;
#[ORM\ManyToMany(targetEntity: EventType::class, inversedBy: 'posts')]
private $event_type;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $musee_name= null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $musee_id;
#[ORM\ManyToOne(targetEntity: PlacementImage::class, inversedBy: 'posts')]
private $position_image;
#[ORM\ManyToMany(targetEntity: User::class, mappedBy: 'favoris')]
private $users;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $order_folder;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $order_tag;
#[ORM\ManyToMany(targetEntity: RssArticle::class, mappedBy: 'posts')]
private $rssArticles;
#[ORM\ManyToMany(targetEntity: RssEvent::class, mappedBy: 'posts')]
private $rssEvents;
#[ORM\ManyToMany(targetEntity: RssArticle::class, mappedBy: 'posts_exclus')]
private $rssArticlesExclus;
#[ORM\ManyToMany(targetEntity: RssEvent::class, mappedBy: 'posts_exclus')]
private $rssEventsExclus;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $openagenda_id;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $archive = false;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_update;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $json = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $openagenda_lieu = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $openagenda_name = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $markdown_description = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $musee_type = null;
#[ORM\ManyToOne(inversedBy: 'posts')]
private ?Lieu $lieu_new = null;
#[ORM\ManyToOne]
private ?CouleurDePost $couleur = null;
#[ORM\ManyToOne]
private ?CouleurDePost $CouleurModeNuit = null;
#[ORM\ManyToOne]
private ?CouleurDePost $couleur_texte = null;
public function __construct()
{
$this->topics = new ArrayCollection();
$this->territories = new ArrayCollection();
$this->contacts = new ArrayCollection();
$this->organizations = new ArrayCollection();
$this->attachments = new ArrayCollection();
$this->links = new ArrayCollection();
$this->related_posts = new ArrayCollection();
$this->posts1 = new ArrayCollection();
$this->posts2 = new ArrayCollection();
$this->posts3 = new ArrayCollection();
$this->tags = new ArrayCollection();
$this->pages1 = new ArrayCollection();
$this->pages2 = new ArrayCollection();
$this->pages3 = new ArrayCollection();
$this->targetpublics = new ArrayCollection();
$this->reponses = new ArrayCollection();
$this->fils = new ArrayCollection();
$this->postCommentaires = new ArrayCollection();
$this->event_type = new ArrayCollection();
$this->users = new ArrayCollection();
$this->rssArticles = new ArrayCollection();
$this->rssEvents = new ArrayCollection();
$this->rssArticlesExclus = new ArrayCollection();
$this->rssEventsExclus = new ArrayCollection();
$this->posts = new ArrayCollection();
}
/**
* @return Collection|Post[]
*/
public function getPosts(): Collection
{
return $this->posts;
}
public function addPost(Post $post): self
{
if (!$this->posts->contains($post)) {
$this->posts[] = $post;
$post->addRelatedPost($this);
}
return $this;
}
public function removePost(Post $post): self
{
if ($this->posts->contains($post)) {
$this->posts->removeElement($post);
$post->removeRelatedPost($this);
}
return $this;
}
public function setDocument1(File $file = null): void
{
$this->document1 = $file;
if ($file) {
$date_update = new \DateTime('now');
$this->updated_at = $date_update->format('d/m/Y');
}
}
public function getDocument1()
{
return $this->document1;
}
public function getDocumentName1(): ?string
{
return $this->document_name1;
}
public function setDocumentName1(string $filename = null): self
{
$this->document_name1 = $filename;
return $this;
}
public function setDocument2(File $file = null): void
{
$this->document2 = $file;
if ($file) {
$date_update = new \DateTime('now');
$this->updated_at = $date_update->format('d/m/Y');
}
}
public function getDocument2()
{
return $this->document2;
}
public function getDocumentName2(): ?string
{
return $this->document_name2;
}
public function setDocumentName2(string $filename = null): self
{
$this->document_name2 = $filename;
return $this;
}
public function setDocument3(File $file = null): void
{
$this->document3 = $file;
if ($file) {
$date_update = new \DateTime('now');
$this->updated_at = $date_update->format('d/m/Y');
}
}
public function getDocument3()
{
return $this->document3;
}
public function getDocumentName3(): ?string
{
return $this->document_name3;
}
public function setDocumentName3(string $filename = null): self
{
$this->document_name3 = $filename;
return $this;
}
public function setIllustrationfil(File $file = null): void
{
$this->illustrationfil = $file;
if ($file) {
$date_update = new \DateTime('now');
$this->updated_at = $date_update->format('d/m/Y');
}
}
public function getIllustrationfil()
{
return $this->illustrationfil;
}
public function getIllustrationfilName(): ?string
{
return $this->illustrationfil_name;
}
public function setIllustrationfilName(string $filename = null): self
{
$this->illustrationfil_name = $filename;
return $this;
}
public function setIllustrationdetail(File $file = null): void
{
$this->illustrationdetail = $file;
if ($file) {
$date_update = new \DateTime('now');
$this->updated_at = $date_update->format('d/m/Y');
}
}
public function getIllustrationdetail()
{
return $this->illustrationdetail;
}
public function getIllustrationdetailName(): ?string
{
return $this->illustrationdetail_name;
}
public function setIllustrationdetailName(string $filename = null): self
{
$this->illustrationdetail_name = $filename;
return $this;
}
public function getId(): int
{
return $this->id;
}
public function getImageUrl(): ?string
{
return $this->image_url;
}
public function setImageUrl(?string $image_url): self
{
$this->image_url = $image_url;
return $this;
}
public function getThumbUrl(): ?string
{
return $this->thumb_url;
}
public function setThumbUrl(?string $thumb_url): self
{
$this->thumb_url = $thumb_url;
return $this;
}
public function getType(): ?PostType
{
return $this->type;
}
public function setType(?PostType $type): self
{
$this->type = $type;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getShortDescription(): ?string
{
return $this->short_description;
}
public function setShortDescription(?string $short_description): self
{
$this->short_description = $short_description;
return $this;
}
public function getContentDuration(): ?string
{
return $this->content_duration;
}
public function setContentDuration(?string $content_duration): self
{
$this->content_duration = $content_duration;
return $this;
}
public function getRestriction(): ?string
{
return $this->restriction;
}
public function setRestriction(?string $restriction): self
{
$this->restriction = $restriction;
return $this;
}
/**
* @return Collection|Topic[]
*/
public function getTopics(): Collection
{
return $this->topics;
}
public function addTopic(Topic $topic): self
{
if (!$this->topics->contains($topic)) {
$this->topics[] = $topic;
}
return $this;
}
public function removeTopic(Topic $topic): self
{
if ($this->topics->contains($topic)) {
$this->topics->removeElement($topic);
}
return $this;
}
/**
* @return Collection|Territory[]
*/
public function getTerritories(): Collection
{
return $this->territories;
}
public function addTerritory(Territory $territory): self
{
if (!$this->territories->contains($territory)) {
$this->territories[] = $territory;
}
return $this;
}
public function removeTerritory(Territory $territory): self
{
if ($this->territories->contains($territory)) {
$this->territories->removeElement($territory);
}
return $this;
}
public function getState(): ?string
{
return $this->state;
}
public function setState(?string $state): self
{
$this->state = $state;
return $this;
}
public function getSuggestedBy(): ?string
{
return $this->suggested_by;
}
public function setSuggestedBy(?string $suggested_by): self
{
$this->suggested_by = $suggested_by;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->created_by;
}
public function setCreatedBy(?User $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getUpdatedBy(): ?User
{
return $this->updated_by;
}
public function setUpdatedBy(?User $updated_by): self
{
$this->updated_by = $updated_by;
return $this;
}
/**
* @return Collection|Contact[]
*/
public function getContacts(): Collection
{
return $this->contacts;
}
public function addContact(Contact $contact): self
{
if (!$this->contacts->contains($contact)) {
$this->contacts[] = $contact;
}
return $this;
}
public function removeContact(Contact $contact): self
{
if ($this->contacts->contains($contact)) {
$this->contacts->removeElement($contact);
}
return $this;
}
/**
* @return Collection|Organization[]
*/
public function getOrganizations(): Collection
{
return $this->organizations;
}
public function addOrganization(Organization $organization): self
{
if (!$this->organizations->contains($organization)) {
$this->organizations[] = $organization;
}
return $this;
}
public function removeOrganization(Organization $organization): self
{
if ($this->organizations->contains($organization)) {
$this->organizations->removeElement($organization);
}
return $this;
}
/**
* @return Collection|Attachment[]
*/
public function getAttachments(): Collection
{
return $this->attachments;
}
public function addAttachment(Attachment $attachment): self
{
if (!$this->attachments->contains($attachment)) {
$this->attachments[] = $attachment;
}
return $this;
}
public function removeAttachment(Attachment $attachment): self
{
if ($this->attachments->contains($attachment)) {
$this->attachments->removeElement($attachment);
}
return $this;
}
/**
* @return Collection|Link[]
*/
public function getLinks(): Collection
{
return $this->links;
}
public function addLink(Link $link): self
{
if (!$this->links->contains($link)) {
$this->links[] = $link;
}
return $this;
}
public function removeLink(Link $link): self
{
if ($this->links->contains($link)) {
$this->links->removeElement($link);
}
return $this;
}
/**
* @return Collection|self[]
*/
public function getRelatedPosts(): Collection
{
return $this->related_posts;
}
public function setRelatedPosts(Collection $related_posts): self
{
$this->related_posts = $related_posts;
return $this;
}
public function addRelatedPost(self $relatedPost): self
{
if (!$this->related_posts->contains($relatedPost)) {
$this->related_posts[] = $relatedPost;
}
return $this;
}
public function removeRelatedPost(self $relatedPost): self
{
if ($this->related_posts->contains($relatedPost)) {
$this->related_posts->removeElement($relatedPost);
}
return $this;
}
public function getPublishedAt(): ?string
{
return $this->published_at;
}
public function setPublishedAt(?string $published_at): self
{
$this->published_at = $published_at;
return $this;
}
public function getCreatedAt(): ?string
{
return $this->created_at;
}
public function setCreatedAt(string $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getUpdatedAt(): ?string
{
return $this->updated_at;
}
public function setUpdatedAt(?string $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getStatus(): ?Statut
{
return $this->status;
}
public function setStatus(?Statut $status): self
{
$this->status = $status;
return $this;
}
public function getContact1(): ?Contact
{
return $this->contact1;
}
public function setContact1(?Contact $contact1): self
{
$this->contact1 = $contact1;
return $this;
}
public function getContact2(): ?Contact
{
return $this->contact2;
}
public function setContact2(?Contact $contact2): self
{
$this->contact2 = $contact2;
return $this;
}
public function getContact3(): ?Contact
{
return $this->contact3;
}
public function setContact3(?Contact $contact3): self
{
$this->contact3 = $contact3;
return $this;
}
public function getOrganisation1(): ?Organization
{
return $this->organisation1;
}
public function setOrganisation1(?Organization $organisation1): self
{
$this->organisation1 = $organisation1;
return $this;
}
public function getOrganisation2(): ?Organization
{
return $this->organisation2;
}
public function setOrganisation2(?Organization $organisation2): self
{
$this->organisation2 = $organisation2;
return $this;
}
public function getOrganisation3(): ?Organization
{
return $this->organisation3;
}
public function setOrganisation3(?Organization $organisation3): self
{
$this->organisation3 = $organisation3;
return $this;
}
public function getRelatedPost1(): ?self
{
return $this->related_post1;
}
public function setRelatedPost1(?self $related_post1): self
{
$this->related_post1 = $related_post1;
return $this;
}
/**
* @return Collection|self[]
*/
public function getPosts1(): Collection
{
return $this->posts1;
}
public function addPosts1(self $posts1): self
{
if (!$this->posts1->contains($posts1)) {
$this->posts1[] = $posts1;
$posts1->setRelatedPost1($this);
}
return $this;
}
public function removePosts1(self $posts1): self
{
if ($this->posts1->contains($posts1)) {
$this->posts1->removeElement($posts1);
// set the owning side to null (unless already changed)
if ($posts1->getRelatedPost1() === $this) {
$posts1->setRelatedPost1(null);
}
}
return $this;
}
public function getRelatedPost2(): ?self
{
return $this->related_post2;
}
public function setRelatedPost2(?self $related_post2): self
{
$this->related_post2 = $related_post2;
return $this;
}
/**
* @return Collection|self[]
*/
public function getPosts2(): Collection
{
return $this->posts2;
}
public function addPosts2(self $posts2): self
{
if (!$this->posts2->contains($posts2)) {
$this->posts2[] = $posts2;
$posts2->setRelatedPost2($this);
}
return $this;
}
public function removePosts2(self $posts2): self
{
if ($this->posts2->contains($posts2)) {
$this->posts2->removeElement($posts2);
// set the owning side to null (unless already changed)
if ($posts2->getRelatedPost2() === $this) {
$posts2->setRelatedPost2(null);
}
}
return $this;
}
public function getRelatedPost3(): ?self
{
return $this->related_post3;
}
public function setRelatedPost3(?self $related_post3): self
{
$this->related_post3 = $related_post3;
return $this;
}
/**
* @return Collection|self[]
*/
public function getPosts3(): Collection
{
return $this->posts3;
}
public function addPosts3(self $posts3): self
{
if (!$this->posts3->contains($posts3)) {
$this->posts3[] = $posts3;
$posts3->setRelatedPost3($this);
}
return $this;
}
public function removePosts3(self $posts3): self
{
if ($this->posts3->contains($posts3)) {
$this->posts3->removeElement($posts3);
// set the owning side to null (unless already changed)
if ($posts3->getRelatedPost3() === $this) {
$posts3->setRelatedPost3(null);
}
}
return $this;
}
public function getLink1(): ?string
{
return $this->link1;
}
public function setLink1(?string $link1): self
{
$this->link1 = $link1;
return $this;
}
public function getUrl1(): ?string
{
return $this->url1;
}
public function setUrl1(?string $url1): self
{
$this->url1 = $url1;
return $this;
}
public function getLink2(): ?string
{
return $this->link2;
}
public function setLink2(?string $link2): self
{
$this->link2 = $link2;
return $this;
}
public function getUrl2(): ?string
{
return $this->url2;
}
public function setUrl2(?string $url2): self
{
$this->url2 = $url2;
return $this;
}
public function getLink3(): ?string
{
return $this->link3;
}
public function setLink3(?string $link3): self
{
$this->link3 = $link3;
return $this;
}
public function getUrl3(): ?string
{
return $this->url3;
}
public function setUrl3(?string $url3): self
{
$this->url3 = $url3;
return $this;
}
public function getDateDebut(): ?string
{
return $this->date_debut;
}
public function setDateDebut(?string $date_debut): self
{
$this->date_debut = $date_debut;
return $this;
}
public function getDateFin(): ?string
{
return $this->date_fin;
}
public function setDateFin(?string $date_fin): self
{
$this->date_fin = $date_fin;
return $this;
}
public function getCommentaires(): ?string
{
return $this->commentaires;
}
public function setCommentaires(?string $commentaires): self
{
$this->commentaires = $commentaires;
return $this;
}
public function getSubtitle(): ?string
{
return $this->subtitle;
}
public function setSubtitle(?string $subtitle): self
{
$this->subtitle = $subtitle;
return $this;
}
public function getChapo(): ?string
{
return $this->chapo;
}
public function setChapo(?string $chapo): self
{
$this->chapo = $chapo;
return $this;
}
public function getPalettecouleur(): ?PaletteCouleur
{
return $this->palettecouleur;
}
public function setPalettecouleur(?PaletteCouleur $palettecouleur): self
{
$this->palettecouleur = $palettecouleur;
return $this;
}
public function getHoraires(): ?string
{
return $this->horaires;
}
public function setHoraires(?string $horaires): self
{
$this->horaires = $horaires;
return $this;
}
public function getTarifs(): ?string
{
return $this->tarifs;
}
public function setTarifs(?string $tarifs): self
{
$this->tarifs = $tarifs;
return $this;
}
public function getLieu(): ?string
{
return $this->lieu;
}
public function setLieu(?string $lieu): self
{
$this->lieu = $lieu;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(?string $ville): self
{
$this->ville = $ville;
return $this;
}
public function __toString(): string
{
return $this->id . ' - ' . $this->title . ' - ' . $this->getType()->getDisplayName() . ' - ' . $this->getStatus()->getName();
}
public function getCredits(): ?string
{
return $this->credits;
}
public function setCredits(?string $credits): self
{
$this->credits = $credits;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getDefautFil(): ?bool
{
return $this->defautFil;
}
public function setDefautFil(?bool $defautFil): self
{
$this->defautFil = $defautFil;
return $this;
}
public function getEpingle1(): ?bool
{
return $this->epingle1;
}
public function setEpingle1(?bool $epingle1): self
{
$this->epingle1 = $epingle1;
return $this;
}
public function getEpingle2(): ?bool
{
return $this->epingle2;
}
public function setEpingle2(?bool $epingle2): self
{
$this->epingle2 = $epingle2;
return $this;
}
public function getOrganizedBy(): ?string
{
return $this->organizedBy;
}
public function setOrganizedBy(?string $organizedBy): self
{
$this->organizedBy = $organizedBy;
return $this;
}
/**
* @return Collection|Tags[]
*/
public function getTags(): Collection
{
return $this->tags;
}
public function addTag(Tags $tag): self
{
if (!$this->tags->contains($tag)) {
$this->tags[] = $tag;
$tag->addContenus($this);
}
return $this;
}
public function removeTag(Tags $tag): self
{
if ($this->tags->contains($tag)) {
$this->tags->removeElement($tag);
$tag->removeContenus($this);
}
return $this;
}
/**
* @return Collection|Pages[]
*/
public function getPages1(): Collection
{
return $this->pages1;
}
public function addPages1(Pages $pages1): self
{
if (!$this->pages1->contains($pages1)) {
$this->pages1[] = $pages1;
$pages1->setRelatedPost1($this);
}
return $this;
}
public function removePages1(Pages $pages1): self
{
if ($this->pages1->contains($pages1)) {
$this->pages1->removeElement($pages1);
// set the owning side to null (unless already changed)
if ($pages1->getRelatedPost1() === $this) {
$pages1->setRelatedPost1(null);
}
}
return $this;
}
/**
* @return Collection|Pages[]
*/
public function getPages2(): Collection
{
return $this->pages2;
}
public function addPages2(Pages $pages2): self
{
if (!$this->pages2->contains($pages2)) {
$this->pages2[] = $pages2;
$pages2->setRelatedPost2($this);
}
return $this;
}
public function removePages2(Pages $pages2): self
{
if ($this->pages2->contains($pages2)) {
$this->pages2->removeElement($pages2);
// set the owning side to null (unless already changed)
if ($pages2->getRelatedPost2() === $this) {
$pages2->setRelatedPost2(null);
}
}
return $this;
}
/**
* @return Collection|Pages[]
*/
public function getPages3(): Collection
{
return $this->pages3;
}
public function addPages3(Pages $pages3): self
{
if (!$this->pages3->contains($pages3)) {
$this->pages3[] = $pages3;
$pages3->setRelatedPost3($this);
}
return $this;
}
public function removePages3(Pages $pages3): self
{
if ($this->pages3->contains($pages3)) {
$this->pages3->removeElement($pages3);
// set the owning side to null (unless already changed)
if ($pages3->getRelatedPost3() === $this) {
$pages3->setRelatedPost3(null);
}
}
return $this;
}
public function getBoolDateMaj(): ?bool
{
return $this->bool_date_maj;
}
public function setBoolDateMaj(?bool $bool_date_maj): self
{
$this->bool_date_maj = $bool_date_maj;
return $this;
}
public function getUpdatedDateDisplay(): ?string
{
return $this->updated_date_display;
}
public function setUpdatedDateDisplay(?string $updated_date_display): self
{
$this->updated_date_display = $updated_date_display;
return $this;
}
/**
* @return Collection|TargetPublic[]
*/
public function getTargetpublics(): Collection
{
return $this->targetpublics;
}
public function addTargetpublic(TargetPublic $targetpublic): self
{
if (!$this->targetpublics->contains($targetpublic)) {
$this->targetpublics[] = $targetpublic;
}
return $this;
}
public function removeTargetpublic(TargetPublic $targetpublic): self
{
if ($this->targetpublics->contains($targetpublic)) {
$this->targetpublics->removeElement($targetpublic);
}
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
return $this;
}
public function getDateDernierStatut(): ?string
{
return $this->date_dernier_statut;
}
public function setDateDernierStatut(?string $date_dernier_statut): self
{
$this->date_dernier_statut = $date_dernier_statut;
return $this;
}
public function getOldStatus(): ?Statut
{
return $this->old_status;
}
public function setOldStatus(?Statut $old_status): self
{
$this->old_status = $old_status;
return $this;
}
public function getDuree(): ?string
{
return $this->duree;
}
public function setDuree(?string $duree): self
{
$this->duree = $duree;
return $this;
}
public function getBoolActu(): ?bool
{
return $this->bool_actu;
}
public function setBoolActu(?bool $bool_actu): self
{
$this->bool_actu = $bool_actu;
return $this;
}
/**
* @return Collection|PostReponses[]
*/
public function getReponses(): Collection
{
return $this->reponses;
}
public function addReponse(PostReponses $reponse): self
{
if (!$this->reponses->contains($reponse)) {
$this->reponses[] = $reponse;
}
return $this;
}
public function removeReponse(PostReponses $reponse): self
{
if ($this->reponses->contains($reponse)) {
$this->reponses->removeElement($reponse);
}
return $this;
}
public function getGrandFormat(): ?bool
{
return $this->grand_format;
}
public function setGrandFormat(?bool $grand_format): self
{
$this->grand_format = $grand_format;
return $this;
}
public function getLikeCount(): ?int
{
return $this->like_count;
}
public function setLikeCount(?int $like_count): self
{
$this->like_count = $like_count;
return $this;
}
public function getCommentCount(): ?int
{
return $this->comment_count;
}
public function setCommentCount(?int $comment_count): self
{
$this->comment_count = $comment_count;
return $this;
}
/**
* @return Collection|Fil[]
*/
public function getFils(): Collection
{
return $this->fils;
}
public function addFil(Fil $fil): self
{
if (!$this->fils->contains($fil)) {
$this->fils[] = $fil;
}
return $this;
}
public function removeFil(Fil $fil): self
{
if ($this->fils->contains($fil)) {
$this->fils->removeElement($fil);
}
return $this;
}
public function getInUse(): ?bool
{
return $this->in_use;
}
public function setInUse(?bool $in_use): self
{
$this->in_use = $in_use;
return $this;
}
public function getEditUser(): ?User
{
return $this->edit_user;
}
public function setEditUser(?User $edit_user): self
{
$this->edit_user = $edit_user;
return $this;
}
public function getEditDate(): ?\DateTimeInterface
{
return $this->edit_date;
}
public function setEditDate(?\DateTimeInterface $edit_date): self
{
$this->edit_date = $edit_date;
return $this;
}
public function getOrganisation4(): ?string
{
return $this->organisation4;
}
public function setOrganisation4(?string $organisation4): self
{
$this->organisation4 = $organisation4;
return $this;
}
public function getAffichageTypeMap(): ?bool
{
return $this->affichage_type_map;
}
public function setAffichageTypeMap(?bool $affichage_type_map): self
{
$this->affichage_type_map = $affichage_type_map;
return $this;
}
public function getAffichageTypeMap2(): ?bool
{
return $this->affichage_type_map2;
}
public function setAffichageTypeMap2(?bool $affichage_type_map2): self
{
$this->affichage_type_map2 = $affichage_type_map2;
return $this;
}
public function getAffichageTypeMap3(): ?bool
{
return $this->affichage_type_map3;
}
public function setAffichageTypeMap3(?bool $affichage_type_map3): self
{
$this->affichage_type_map3 = $affichage_type_map3;
return $this;
}
/**
* @return Collection|PostCommentaires[]
*/
public function getPostCommentaires(): Collection
{
return $this->postCommentaires;
}
public function addPostCommentaire(PostCommentaires $postCommentaire): self
{
if (!$this->postCommentaires->contains($postCommentaire)) {
$this->postCommentaires[] = $postCommentaire;
$postCommentaire->setPost($this);
}
return $this;
}
public function removePostCommentaire(PostCommentaires $postCommentaire): self
{
if ($this->postCommentaires->contains($postCommentaire)) {
$this->postCommentaires->removeElement($postCommentaire);
// set the owning side to null (unless already changed)
if ($postCommentaire->getPost() === $this) {
$postCommentaire->setPost(null);
}
}
return $this;
}
/**
* @return Collection|EventType[]
*/
public function getEventType(): Collection
{
return $this->event_type;
}
public function addEventType(EventType $eventType): self
{
if (!$this->event_type->contains($eventType)) {
$this->event_type[] = $eventType;
}
return $this;
}
public function removeEventType(EventType $eventType): self
{
if ($this->event_type->contains($eventType)) {
$this->event_type->removeElement($eventType);
}
return $this;
}
public function getMuseeName(): ?string
{
return $this->musee_name;
}
public function setMuseeName(?string $musee_name): self
{
$this->musee_name = $musee_name;
return $this;
}
public function getMuseeId(): ?int
{
return $this->musee_id;
}
public function setMuseeId(?int $musee_id): self
{
$this->musee_id = $musee_id;
return $this;
}
public function getPositionImage(): ?PlacementImage
{
return $this->position_image;
}
public function setPositionImage(?PlacementImage $position_image): self
{
$this->position_image = $position_image;
return $this;
}
/**
* @return Collection|User[]
*/
public function getUsers(): Collection
{
return $this->users;
}
public function addUser(User $user): self
{
if (!$this->users->contains($user)) {
$this->users[] = $user;
$user->addFavori($this);
}
return $this;
}
public function removeUser(User $user): self
{
if ($this->users->contains($user)) {
$this->users->removeElement($user);
$user->removeFavori($this);
}
return $this;
}
public function getOrderFolder(): ?int
{
return $this->order_folder;
}
public function setOrderFolder(?int $order_folder): self
{
$this->order_folder = $order_folder;
return $this;
}
public function getOrderTag(): ?int
{
return $this->order_tag;
}
public function setOrderTag(?int $order_tag): self
{
$this->order_tag = $order_tag;
return $this;
}
/**
* @return Collection|RssArticle[]
*/
public function getRssArticles(): Collection
{
return $this->rssArticles;
}
public function addRssArticle(RssArticle $rssArticle): self
{
if (!$this->rssArticles->contains($rssArticle)) {
$this->rssArticles[] = $rssArticle;
$rssArticle->addPost($this);
}
return $this;
}
public function removeRssArticle(RssArticle $rssArticle): self
{
if ($this->rssArticles->contains($rssArticle)) {
$this->rssArticles->removeElement($rssArticle);
$rssArticle->removePost($this);
}
return $this;
}
/**
* @return Collection|RssEvent[]
*/
public function getRssEvents(): Collection
{
return $this->rssEvents;
}
public function addRssEvent(RssEvent $rssEvent): self
{
if (!$this->rssEvents->contains($rssEvent)) {
$this->rssEvents[] = $rssEvent;
$rssEvent->addPost($this);
}
return $this;
}
public function removeRssEvent(RssEvent $rssEvent): self
{
if ($this->rssEvents->contains($rssEvent)) {
$this->rssEvents->removeElement($rssEvent);
$rssEvent->removePost($this);
}
return $this;
}
/**
* @return Collection|RssArticle[]
*/
public function getRssArticlesExclus(): Collection
{
return $this->rssArticlesExclus;
}
public function addRssArticlesExclu(RssArticle $rssArticlesExclu): self
{
if (!$this->rssArticlesExclus->contains($rssArticlesExclu)) {
$this->rssArticlesExclus[] = $rssArticlesExclu;
$rssArticlesExclu->addPostsExclu($this);
}
return $this;
}
public function removeRssArticlesExclu(RssArticle $rssArticlesExclu): self
{
if ($this->rssArticlesExclus->removeElement($rssArticlesExclu)) {
$rssArticlesExclu->removePostsExclu($this);
}
return $this;
}
/**
* @return Collection|RssEvent[]
*/
public function getRssEventsExclus(): Collection
{
return $this->rssEventsExclus;
}
public function addRssEventsExclu(RssEvent $rssEventsExclu): self
{
if (!$this->rssEventsExclus->contains($rssEventsExclu)) {
$this->rssEventsExclus[] = $rssEventsExclu;
$rssEventsExclu->addPostsExclu($this);
}
return $this;
}
public function removeRssEventsExclu(RssEvent $rssEventsExclu): self
{
if ($this->rssEventsExclus->removeElement($rssEventsExclu)) {
$rssEventsExclu->removePostsExclu($this);
}
return $this;
}
public function getOpenagendaId(): ?int
{
return $this->openagenda_id;
}
public function setOpenagendaId(?int $openagenda_id): self
{
$this->openagenda_id = $openagenda_id;
return $this;
}
public function getArchive(): ?bool
{
return $this->archive;
}
public function setArchive(?bool $archive): self
{
$this->archive = $archive;
return $this;
}
public function getDateUpdate(): ?\DateTimeInterface
{
return $this->date_update;
}
public function setDateUpdate(?\DateTimeInterface $date_update): self
{
$this->date_update = $date_update;
return $this;
}
public function getJson(): ?string
{
return $this->json;
}
public function setJson(?string $json): self
{
$this->json = $json;
return $this;
}
public function getOpenagendaLieu(): ?string
{
return $this->openagenda_lieu;
}
public function setOpenagendaLieu(?string $openagenda_lieu): self
{
$this->openagenda_lieu = $openagenda_lieu;
return $this;
}
public function getOpenagendaName(): ?string
{
return $this->openagenda_name;
}
public function setOpenagendaName(?string $openagenda_name): self
{
$this->openagenda_name = $openagenda_name;
return $this;
}
public function getMarkdownDescription(): ?string
{
return $this->markdown_description;
}
public function setMarkdownDescription(?string $markdown_description): self
{
$this->markdown_description = $markdown_description;
return $this;
}
public function getMuseeType(): ?string
{
return $this->musee_type;
}
public function setMuseeType(?string $musee_type): self
{
$this->musee_type = $musee_type;
return $this;
}
public function getLieuNew(): ?Lieu
{
return $this->lieu_new;
}
public function setLieuNew(?Lieu $lieu_new): static
{
$this->lieu_new = $lieu_new;
return $this;
}
public function getCouleur(): ?CouleurDePost
{
return $this->couleur;
}
public function setCouleur(?CouleurDePost $couleur): static
{
$this->couleur = $couleur;
return $this;
}
public function getCouleurModeNuit(): ?CouleurDePost
{
return $this->CouleurModeNuit;
}
public function setCouleurModeNuit(?CouleurDePost $CouleurModeNuit): static
{
$this->CouleurModeNuit = $CouleurModeNuit;
return $this;
}
public function getCouleurTexte(): ?CouleurDePost
{
return $this->couleur_texte;
}
public function setCouleurTexte(?CouleurDePost $couleur_texte): static
{
$this->couleur_texte = $couleur_texte;
return $this;
}
}