1 | <?php |
||
5 | class Job |
||
6 | { |
||
7 | /** @var Cron */ |
||
8 | private $cron; |
||
9 | |||
10 | /** @var Time */ |
||
11 | private $time; |
||
12 | |||
13 | /** @var string */ |
||
14 | private $command; |
||
15 | |||
16 | /** @var Output */ |
||
17 | private $output; |
||
18 | |||
19 | public function __construct(string $command, Cron $cron) |
||
26 | |||
27 | /** @see Time::setMinute */ |
||
28 | public function setMinute(string $value): self |
||
34 | |||
35 | /** @see Time::setHour */ |
||
36 | public function setHour(string $value): self |
||
42 | |||
43 | /** @see Time::setDayOfMonth */ |
||
44 | public function setDayOfMonth(string $value): self |
||
50 | |||
51 | /** @see Time::setMonth */ |
||
52 | public function setMonth(string $value): self |
||
58 | |||
59 | /** @see Time::setDayOfWeek */ |
||
60 | public function setDayOfWeek(string$value): self |
||
66 | |||
67 | /** |
||
68 | * Suppress the output of this command when executed |
||
69 | * |
||
70 | * @see Output::suppressOutput |
||
71 | */ |
||
72 | public function suppressOutput(): self |
||
78 | |||
79 | /** @see Output::setStandardOutFile */ |
||
80 | public function setStandardOutFile(string $filePath): self |
||
86 | |||
87 | /** @see Output::appendStandardOutToFile */ |
||
88 | public function appendStandardOutToFile(string $filePath): self |
||
94 | |||
95 | /** @see Output::setStandardErrorFile */ |
||
96 | public function setStandardErrorFile(string $filePath): self |
||
102 | |||
103 | /** @see Output::appendStandardErrorToFile */ |
||
104 | public function appendStandardErrorToFile(string $filePath): self |
||
110 | |||
111 | public function end(): Cron |
||
115 | |||
116 | public function format(): string |
||
124 | } |
||
125 |