2021-04-14 14:14:12 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
2021-08-11 01:04:57 +08:00
|
|
|
namespace Kiri\Crontab;
|
2021-04-14 14:14:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class DefaultCrontab
|
2021-08-11 01:04:57 +08:00
|
|
|
* @package Kiri\Crontab
|
2021-04-14 14:14:12 +08:00
|
|
|
*/
|
|
|
|
|
class DefaultCrontab extends Crontab
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
public function isStop(): bool
|
|
|
|
|
{
|
2021-07-23 17:38:09 +08:00
|
|
|
return true;
|
2021-04-14 14:14:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
2021-07-23 17:38:09 +08:00
|
|
|
public function process(): void
|
2021-04-14 14:14:12 +08:00
|
|
|
{
|
|
|
|
|
// TODO: Implement process() method.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2021-07-23 17:38:09 +08:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
2021-08-05 16:01:51 +08:00
|
|
|
public function onMaxExecute(): void
|
2021-04-14 14:14:12 +08:00
|
|
|
{
|
|
|
|
|
// TODO: Implement max_execute() method.
|
|
|
|
|
}
|
|
|
|
|
}
|