mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
Feature: [cron] Create a cron manager
This commit is contained in:
23
src/Bundle/ChillMainBundle/Cron/CronJobInterface.php
Normal file
23
src/Bundle/ChillMainBundle/Cron/CronJobInterface.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\MainBundle\Cron;
|
||||
|
||||
use Chill\MainBundle\Entity\CronJobExecution;
|
||||
|
||||
interface CronJobInterface
|
||||
{
|
||||
public function canRun(?CronJobExecution $cronJobExecution): bool;
|
||||
|
||||
public function getKey(): string;
|
||||
|
||||
public function run(): void;
|
||||
}
|
Reference in New Issue
Block a user