Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SonyPradana committed Jun 28, 2024
1 parent 064d649 commit c4f00b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/System/Cron/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public function setLogger(InterpolateInterface $logger): void
$this->logger = $logger;
}

public function add(schedule $schedule): self
/**
* Add Schedule pool to the collection pool.
*/
public function add(Schedule $schedule): self
{
foreach ($schedule->getPools() as $time) {
$this->pools[] = $time;
Expand All @@ -66,6 +69,9 @@ public function add(schedule $schedule): self
return $this;
}

/**
* Clear schedule pool.
*/
public function flush(): void
{
$this->pools = [];
Expand Down
4 changes: 2 additions & 2 deletions src/System/Support/Facades/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

/**
* @method static \System\Cron\ScheduleTime[] getPools()
* @method static \System\Cron\ScheduleTime call(\Closure $call_back, $params = [])
* @method static \System\Cron\ScheduleTime call(\Closure $call_back, array $params = [])
* @method static void execute()
* @method static void setLogger()
* @method static \System\Cron\Schedule ref(\System\Cron\Schedule\Schedule $schedule)
* @method static \System\Cron\Schedule add(\System\Cron\Schedule $schedule)
* @method static void flush()
*/
final class Schedule extends Facade
Expand Down

0 comments on commit c4f00b3

Please sign in to comment.