| 1 | <?php |
||
| 8 | class SharedFileShutdown implements ShutdownInterface |
||
| 9 | { |
||
| 10 | private $filePath; |
||
| 11 | |||
| 12 | public function __construct(string $filePath) |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | public function shouldShutdown(DateTime $startTime): bool |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | * |
||
| 37 | * Creates file defined in constructor with modification time `$shutdownTime` (or current DateTime). |
||
| 38 | */ |
||
| 39 | public function shutdown(DateTime $shutdownTime = null): bool |
||
| 47 | } |
||
| 48 |