diff --git a/backend/app/Post/CreatePostDto.php b/backend/app/Post/CreatePostDto.php new file mode 100644 index 0000000..255f2e9 --- /dev/null +++ b/backend/app/Post/CreatePostDto.php @@ -0,0 +1,15 @@ +id; + } + + public function getUserId(): int + { + return $this->userId; + } + + public function getTitle(): string + { + return $this->title; + } + + public function getBody(): string + { + return $this->body; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } +} diff --git a/backend/app/Post/PostRepository.php b/backend/app/Post/PostRepository.php new file mode 100644 index 0000000..a00827b --- /dev/null +++ b/backend/app/Post/PostRepository.php @@ -0,0 +1,22 @@ +