Files
myep/src/Enum/ContentFetchState.php
T

24 lines
704 B
PHP

<?php
declare(strict_types=1);
namespace App\Enum;
/**
* Outcome of the last fetch of one content feed item.
*
* `Empty` and `Failed` are remembered together with the manifest `modified` they were
* reached at, so a page that renders without text or keeps answering 404 is not refetched
* every run, only once TYPO3 reports a change or the weekly refresh comes round.
*/
enum ContentFetchState: string
{
/** Listed in the manifest, not fetched yet. */
case Pending = 'pending';
case Ok = 'ok';
/** Fetched, but converted to no text. Kept out of the index. */
case Empty = 'empty';
/** The page answered 404 or 5xx. Kept out of the index. */
case Failed = 'failed';
}