2023-12-31 18:54:10 +04:00
|
|
|
<?php
|
2024-04-25 17:46:14 +04:00
|
|
|
namespace nur\sery\file\base;
|
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";
|
|
|
|
|
|
|
|
function __construct($file, ?string $mode=null, bool $throwOnError=true, ?bool $allowLocking=null) {
|
|
|
|
if ($file === null) throw ValueException::null("file");
|
|
|
|
parent::__construct($file, $mode, $throwOnError, $allowLocking);
|
|
|
|
}
|
|
|
|
}
|