nur-sery/src/os/file/SharedFile.php

16 lines
401 B
PHP
Raw Normal View History

2023-12-31 18:54:10 +04:00
<?php
namespace nur\sery\os\file;
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);
}
}