ResetErrorArticles
in package
Use case for resetting error-marked articles.
Articles are marked as errors by prepending a space to their link. This use case removes that marker to allow reimport attempts.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : int
- Execute the use case.
- executeForFeed() : int
- Reset errors for a single feed.
Properties
$articleRepository
private
ArticleRepositoryInterface
$articleRepository
Methods
__construct()
Constructor.
public
__construct(ArticleRepositoryInterface $articleRepository) : mixed
Parameters
- $articleRepository : ArticleRepositoryInterface
-
Article repository
execute()
Execute the use case.
public
execute(array<string|int, int> $feedIds) : int
Parameters
- $feedIds : array<string|int, int>
-
Feed IDs to reset error articles for
Return values
int —Number of reset articles
executeForFeed()
Reset errors for a single feed.
public
executeForFeed(int $feedId) : int
Parameters
- $feedId : int
-
Feed ID
Return values
int —Number of reset articles