add Comment entity, dto, repository interface
This commit is contained in:
parent
015e61caf7
commit
0d589340d9
3 changed files with 73 additions and 0 deletions
15
backend/app/Comment/CreateCommentDto.php
Normal file
15
backend/app/Comment/CreateCommentDto.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Comment;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
readonly class CreateCommentDto
|
||||
{
|
||||
public function __construct(
|
||||
public int $postId,
|
||||
public int $userId,
|
||||
public string $body,
|
||||
public DateTimeImmutable $createdAt,
|
||||
) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue