src/Entity/CRM/SocialPostPlatform.php line 10
<?phpnamespace App\Entity\CRM;use App\Repository\CRM\SocialPostPlatformRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SocialPostPlatformRepository::class)]class SocialPostPlatform{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'socialPostPlatforms')]#[ORM\JoinColumn(nullable: false)]private ?SocialPost $socialPost = null;#[ORM\ManyToOne(inversedBy: 'socialPostPlatforms')]#[ORM\JoinColumn(nullable: false)]private ?SocialPlatform $socialPlatform = null;#[ORM\Column(nullable: true)]private ?bool $published = false;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $publishedAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $externalPostId = null;#[ORM\Column(length: 500, nullable: true)]private ?string $errorMessage = null;#[ORM\Column(nullable: true, options: ['default' => false])]private ?bool $publishComment = false;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $commentContent = null;public function __toString(): string{return ($this->socialPlatform ? $this->socialPlatform->getName() : '') .($this->published ? ' ✓' : ' ✗');}public function getId(): ?int{return $this->id;}public function getSocialPost(): ?SocialPost{return $this->socialPost;}public function setSocialPost(?SocialPost $socialPost): static{$this->socialPost = $socialPost;return $this;}public function getSocialPlatform(): ?SocialPlatform{return $this->socialPlatform;}public function setSocialPlatform(?SocialPlatform $socialPlatform): static{$this->socialPlatform = $socialPlatform;return $this;}public function isPublished(): ?bool{return $this->published;}public function setPublished(?bool $published): static{$this->published = $published;return $this;}public function getPublishedAt(): ?\DateTimeInterface{return $this->publishedAt;}public function setPublishedAt(?\DateTimeInterface $publishedAt): static{$this->publishedAt = $publishedAt;return $this;}public function getExternalPostId(): ?string{return $this->externalPostId;}public function setExternalPostId(?string $externalPostId): static{$this->externalPostId = $externalPostId;return $this;}public function getErrorMessage(): ?string{return $this->errorMessage;}public function setErrorMessage(?string $errorMessage): static{$this->errorMessage = $errorMessage;return $this;}public function isPublishComment(): ?bool{return $this->publishComment;}public function setPublishComment(?bool $publishComment): static{$this->publishComment = $publishComment;return $this;}public function getCommentContent(): ?string{return $this->commentContent;}public function setCommentContent(?string $commentContent): static{$this->commentContent = $commentContent;return $this;}}