← Back
Editing: ReportCommentTemplate.php
<?php declare(strict_types=1); namespace App\Entity; use App\Enum\ReportType; use App\Repository\ReportCommentTemplateRepository; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Serializer\Annotation\Groups; #[ORM\Entity(repositoryClass: ReportCommentTemplateRepository::class)] class ReportCommentTemplate { #[Groups(['show_comment_template'])] #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[Groups(['show_comment_template'])] #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $comment = null; #[Groups(['show_comment_template'])] #[ORM\Column] private ?int $position = null; #[Groups(['show_comment_template'])] #[ORM\Column(type: 'string', length: 15, enumType: ReportType::class)] private ?ReportType $reportType = null; #[Groups(['show_comment_template'])] #[Gedmo\Timestampable(on: 'create')] #[ORM\Column(type: Types::DATE_MUTABLE)] private $createdAt; public function getId(): ?int { return $this->id; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } public function getPosition(): ?int { return $this->position; } public function setPosition(int $position): self { $this->position = $position; return $this; } public function getCreatedAt(): \DateTime { return $this->createdAt; } public function getReportType(): ?ReportType { return $this->reportType; } public function setReportType(?ReportType $reportType): self { $this->reportType = $reportType; return $this; } }
Save File
Cancel