TIDE/backend/app/Comment/CommentRepository.php

17 lines
309 B
PHP

<?php
namespace App\Comment;
interface CommentRepository
{
public function create(CreateCommentDto $dto): Comment;
public function find(int $id): ?Comment;
/**
* @return Comment[]
*/
public function findByPostId(int $postId): array;
public function delete(int $id): void;
}