File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 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 ();
Original file line number Diff line number Diff line change 66
77enum OutputMode: string
88{
9- case Overwrite = '> ' ;
10- case Append = '>> ' ;
9+ case OVERWRITE = '> ' ;
10+ case APPEND = '>> ' ;
1111}
You can’t perform that action at this time.
0 commit comments