Files
FOSSBilling/src/modules/Cron/Api/Guest.php
T
2022-11-28 17:22:50 +03:00

55 lines
963 B
PHP

<?php
/**
* FOSSBilling.
*
* @copyright FOSSBilling (https://www.fossbilling.org)
* @license Apache-2.0
*
* Copyright FOSSBilling 2022
* This software may contain code previously used in the BoxBilling project.
* Copyright BoxBilling, Inc 2011-2021
*
* This source file is subject to the Apache-2.0 License that is bundled
* with this source code in the file LICENSE
*/
/**
* Cron checker.
*/
namespace Box\Mod\Cron\Api;
class Guest extends \Api_Abstract
{
/**
* Run cron if is late and web based cron is enabled.
*
* @return bool
*/
public function check()
{
return false;
}
/**
* Get cron settings.
*
* @return array
*/
public function settings()
{
return $this->getMod()->getConfig();
}
/**
* Tells if cron is late.
*
* @return bool
*/
public function is_late()
{
return $this->getService()->isLate();
}
}