src/Entity/CRM/SocialPostPrompt.php line 12
<?phpnamespace App\Entity\CRM;use App\Repository\CRM\SocialPostPromptRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SocialPostPromptRepository::class)]class SocialPostPrompt{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column(type: Types::TEXT)]private ?string $textPrompt = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $imagePrompt = null;#[ORM\Column(nullable: true)]private ?bool $generateImage = false;#[ORM\Column(nullable: true)]private ?bool $isActive = true;#[ORM\Column(length: 50, nullable: true)]private ?string $scheduleFrequency = null;#[ORM\Column(length: 50, nullable: true)]private ?string $textModel = 'gpt-5.4';#[ORM\Column(length: 50, nullable: true)]private ?string $imageModel = 'gpt-image-1-mini';#[ORM\Column(length: 20, nullable: true)]private ?string $imageSize = '1024x1024';#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $systemPrompt = null;#[ORM\ManyToMany(targetEntity: SocialPlatform::class)]private Collection $platforms;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $lastGeneratedAt = null;public function __construct(){$this->platforms = new ArrayCollection();}public function __toString(): string{return $this->name ?? '';}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): static{$this->name = $name;return $this;}public function getTextPrompt(): ?string{return $this->textPrompt;}public function setTextPrompt(string $textPrompt): static{$this->textPrompt = $textPrompt;return $this;}public function getImagePrompt(): ?string{return $this->imagePrompt;}public function setImagePrompt(?string $imagePrompt): static{$this->imagePrompt = $imagePrompt;return $this;}public function isGenerateImage(): ?bool{return $this->generateImage;}public function setGenerateImage(?bool $generateImage): static{$this->generateImage = $generateImage;return $this;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(?bool $isActive): static{$this->isActive = $isActive;return $this;}public function getScheduleFrequency(): ?string{return $this->scheduleFrequency;}public function setScheduleFrequency(?string $scheduleFrequency): static{$this->scheduleFrequency = $scheduleFrequency;return $this;}public function getTextModel(): ?string{return $this->textModel;}public function setTextModel(?string $textModel): static{$this->textModel = $textModel;return $this;}public function getImageModel(): ?string{return $this->imageModel;}public function setImageModel(?string $imageModel): static{$this->imageModel = $imageModel;return $this;}public function getImageSize(): ?string{return $this->imageSize;}public function setImageSize(?string $imageSize): static{$this->imageSize = $imageSize;return $this;}public function getSystemPrompt(): ?string{return $this->systemPrompt;}public function setSystemPrompt(?string $systemPrompt): static{$this->systemPrompt = $systemPrompt;return $this;}/*** @return Collection<int, SocialPlatform>*/public function getPlatforms(): Collection{return $this->platforms;}public function addPlatform(SocialPlatform $platform): static{if (!$this->platforms->contains($platform)) {$this->platforms->add($platform);}return $this;}public function removePlatform(SocialPlatform $platform): static{$this->platforms->removeElement($platform);return $this;}public function getLastGeneratedAt(): ?\DateTimeInterface{return $this->lastGeneratedAt;}public function setLastGeneratedAt(?\DateTimeInterface $lastGeneratedAt): static{$this->lastGeneratedAt = $lastGeneratedAt;return $this;}}