<?php

declare(strict_types=1);

namespace Autogedal\FeedMonitor\Model\Adapter;

/**
 * A kind of monitored source (custom crons, sub-feeds, Magento cron, later Firebear jobs). Its periodic check runs
 * from Model\Checker; the sources are listed in etc/di.xml (argument "sources" of Checker).
 */
interface SourceMonitorInterface
{
    /**
     * @param bool $outsideCron true when run from the server crontab (autogedal:feed-monitor:check), false from cron:run
     * @return string[] what was found
     */
    public function check(bool $outsideCron): array;
}
