Buckets:
| namespace App\Entity; | |
| use App\Enum\CommentStatus; | |
| use App\Repository\CommentRepository; | |
| use Doctrine\DBAL\Types\Types; | |
| use Doctrine\ORM\Mapping as ORM; | |
| #[ORM\Entity(repositoryClass: CommentRepository::class)] | |
| class Comment | |
| { | |
| #[ORM\Id] | |
| #[ORM\GeneratedValue] | |
| #[ORM\Column] | |
| private ?int $id = null; | |
| #[ORM\Column(length: 255)] | |
| private ?string $name = null; | |
| #[ORM\Column(length: 255, nullable: true)] | |
| private ?string $email = null; | |
| #[ORM\Column(length: 255)] | |
| private ?string $isbn = null; | |
| #[ORM\Column(length: 255)] | |
| private ?string $cover = null; | |
| #[ORM\Column] | |
| private ?\DateTimeImmutable $createdAt = null; | |
| #[ORM\Column(nullable: true)] | |
| private ?\DateTimeImmutable $publishedAt = null; | |
| #[ORM\Column(type: Types::SIMPLE_ARRAY, enumType: CommentStatus::class)] | |
| private array $status = []; | |
| #[ORM\Column(type: Types::TEXT)] | |
| private ?string $content = null; | |
| #[ORM\ManyToOne(inversedBy: 'comments')] | |
| private ?Book $book = null; | |
| 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 getEmail(): ?string | |
| { | |
| return $this->email; | |
| } | |
| public function setEmail(string $email): static | |
| { | |
| $this->email = $email; | |
| return $this; | |
| } | |
| public function getIsbn(): ?string | |
| { | |
| return $this->isbn; | |
| } | |
| public function setIsbn(string $isbn): static | |
| { | |
| $this->isbn = $isbn; | |
| return $this; | |
| } | |
| public function getCover(): ?string | |
| { | |
| return $this->cover; | |
| } | |
| public function setCover(string $cover): static | |
| { | |
| $this->cover = $cover; | |
| return $this; | |
| } | |
| public function getCreatedAt(): ?\DateTimeImmutable | |
| { | |
| return $this->createdAt; | |
| } | |
| public function setCreatedAt(\DateTimeImmutable $createdAt): static | |
| { | |
| $this->createdAt = $createdAt; | |
| return $this; | |
| } | |
| public function getPublishedAt(): ?\DateTimeImmutable | |
| { | |
| return $this->publishedAt; | |
| } | |
| public function setPublishedAt(?\DateTimeImmutable $publishedAt): static | |
| { | |
| $this->publishedAt = $publishedAt; | |
| return $this; | |
| } | |
| /** | |
| * @return CommentStatus[] | |
| */ | |
| public function getStatus(): array | |
| { | |
| return $this->status; | |
| } | |
| public function setStatus(array $status): static | |
| { | |
| $this->status = $status; | |
| return $this; | |
| } | |
| public function getContent(): ?string | |
| { | |
| return $this->content; | |
| } | |
| public function setContent(string $content): static | |
| { | |
| $this->content = $content; | |
| return $this; | |
| } | |
| public function getBook(): ?Book | |
| { | |
| return $this->book; | |
| } | |
| public function setBook(?Book $book): static | |
| { | |
| $this->book = $book; | |
| return $this; | |
| } | |
| } | |
Xet Storage Details
- Size:
- 3.06 kB
- Xet hash:
- 404bc0d646b9292dc0ef8e52823da02ae2426a8c7a0017bb12bdb5c3f45d9dfc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.