implement ListRecentPosts use case
validates limit > 0 (zero or negative -> BadRequest), then delegates to PostRepository->findRecent. 49 tests pass.
This commit is contained in:
parent
e9779d8459
commit
7ec46aa8f9
2 changed files with 38 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace App\Post\UseCases\ListRecentPosts;
|
||||
|
||||
class ListRecentPostsRequest
|
||||
{
|
||||
public function __construct(
|
||||
public int $limit,
|
||||
) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue