CronJobs
in
Cron jobs interface.
Tags
Table of Contents
Methods
- __construct() : mixed
- Class constructor.
- execute() : bool
- Execute a cron job.
Methods
__construct()
Class constructor.
public
__construct(Container $Container, Cron $Cron) : mixed
Parameters
- $Container : Container
-
The DI container class.
- $Cron : Cron
-
The cron class to help check job had already run.
execute()
Execute a cron job.
public
execute() : bool
Tags
Return values
bool —Return true
if it had run, false
if it was not run.