src/Entity/CompletedDialogue.php line 25
<?phpnamespace App\Entity;use ApiPlatform\Metadata\Get;use ApiPlatform\Metadata\Put;use ApiPlatform\Metadata\Post;use Doctrine\ORM\Mapping as ORM;use ApiPlatform\Metadata\ApiProperty;use ApiPlatform\Metadata\ApiResource;use Gedmo\Mapping\Annotation as Gedmo;use ApiPlatform\Metadata\GetCollection;use App\Controller\CompletedController;use App\Controller\CompletedLastRuleController;use App\Repository\CompletedDialogueRepository;use Symfony\Component\Serializer\Annotation\Groups;use App\Controller\CreateCompletedDialogueController;use Symfony\Component\HttpFoundation\File\File;use Vich\UploaderBundle\Mapping\Annotation as Vich;#[ORM\Entity(repositoryClass: CompletedDialogueRepository::class)]#[Vich\Uploadable]class CompletedDialogue{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'completedDialogues')]#[ORM\JoinColumn(nullable: false)]private ?Account $account = null;#[ORM\ManyToOne(inversedBy: 'completedDialogues')]#[ORM\JoinColumn(nullable: false)]private ?Dialogue $dialogue = null;private ?string $photoUrl = null;#[Vich\UploadableField(mapping: 'completed_dialogue', fileNameProperty: 'photoPath')]private ?File $file = null;#[ORM\Column(length: 255, nullable: true)]private ?string $photoPath = null;#[ORM\Column]#[Gedmo\Timestampable(on: "create")]private ?\DateTimeImmutable $createdAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $rule = null;public function getId(): ?int{return $this->id;}public function getAccount(): ?Account{return $this->account;}public function setAccount(?Account $account): self{$this->account = $account;return $this;}public function getDialogue(): ?Dialogue{return $this->dialogue;}public function setDialogue(?Dialogue $dialogue): self{$this->dialogue = $dialogue;return $this;}public function getPhotoPath(): ?string{return $this->photoPath;}public function setPhotoPath(?string $photoPath): self{$this->photoPath = $photoPath;return $this;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getRule(): ?string{return $this->rule;}public function setRule(?string $rule): self{$this->rule = $rule;return $this;}public function getPhotoUrl(): ?string{return $this->photoUrl;}public function setPhotoUrl(?string $photoUrl): self{$this->photoUrl = $photoUrl;return $this;}public function getFile(): ?File{return $this->file;}public function setFile(?File $file): self{$this->file = $file;return $this;}}