2023-12-31 18:54:10 +04:00
|
|
|
<?php
|
2024-05-22 20:44:20 +04:00
|
|
|
namespace nur\sery\file;
|
2023-12-31 18:54:10 +04:00
|
|
|
|
2024-04-05 08:31:49 +04:00
|
|
|
use nur\sery\ValueException;
|
2023-12-31 18:54:10 +04:00
|
|
|
|
|
|
|
class SharedFile extends FileWriter {
|
2024-01-01 00:24:47 +04:00
|
|
|
const USE_LOCKING = true;
|
2023-12-31 18:54:10 +04:00
|
|
|
|
|
|
|
const DEFAULT_MODE = "c+b";
|
|
|
|
|
2024-06-10 15:53:58 +04:00
|
|
|
function __construct($file, ?string $mode=null, ?bool $throwOnError=null, ?bool $allowLocking=null) {
|
2023-12-31 18:54:10 +04:00
|
|
|
if ($file === null) throw ValueException::null("file");
|
|
|
|
parent::__construct($file, $mode, $throwOnError, $allowLocking);
|
|
|
|
}
|
|
|
|
}
|