GetFeedById
in package
Use case for retrieving a single feed by ID.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : Feed|null
- Execute the use case.
- exists() : bool
- Check if a feed exists.
Properties
$feedRepository
private
FeedRepositoryInterface
$feedRepository
Methods
__construct()
Constructor.
public
__construct(FeedRepositoryInterface $feedRepository) : mixed
Parameters
- $feedRepository : FeedRepositoryInterface
-
Feed repository
execute()
Execute the use case.
public
execute(int $feedId) : Feed|null
Parameters
- $feedId : int
-
Feed ID
Return values
Feed|null —Feed entity or null if not found
exists()
Check if a feed exists.
public
exists(int $feedId) : bool
Parameters
- $feedId : int
-
Feed ID
Return values
bool —True if exists