diff --git a/backend/app/Comment/Comment.php b/backend/app/Comment/Comment.php new file mode 100644 index 0000000..311b6c4 --- /dev/null +++ b/backend/app/Comment/Comment.php @@ -0,0 +1,41 @@ +id; + } + + public function getPostId(): int + { + return $this->postId; + } + + public function getUserId(): int + { + return $this->userId; + } + + public function getBody(): string + { + return $this->body; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } +} diff --git a/backend/app/Comment/CommentRepository.php b/backend/app/Comment/CommentRepository.php new file mode 100644 index 0000000..7248d20 --- /dev/null +++ b/backend/app/Comment/CommentRepository.php @@ -0,0 +1,17 @@ +