Skip to content

Commit a4fa4a6

Browse files
authored
refactor(console): update OutputMode enum casing (#1233)
1 parent 6dd0cbb commit a4fa4a6

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

packages/console/src/Schedule.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,24 @@
1515
public Interval $interval;
1616

1717
public function __construct(
18+
/**
19+
* Interval at which the scheduled task should be executed.
20+
*/
1821
Interval|Every $interval,
22+
23+
/**
24+
* Where to send STDOUT output.
25+
*/
1926
public string $output = '/dev/null',
20-
public OutputMode $outputMode = OutputMode::Append,
27+
28+
/**
29+
* Whether to append or overwrite the output.
30+
*/
31+
public OutputMode $outputMode = OutputMode::APPEND,
32+
33+
/**
34+
* Whether to run the task in the background.
35+
*/
2136
public bool $runInBackground = true,
2237
) {
2338
$this->interval = ($interval instanceof Interval) ? $interval : $interval->toInterval();

packages/console/src/Scheduler/OutputMode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
enum OutputMode: string
88
{
9-
case Overwrite = '>';
10-
case Append = '>>';
9+
case OVERWRITE = '>';
10+
case APPEND = '>>';
1111
}

0 commit comments

Comments
 (0)