nulib/php/src_file/base/SharedFile.php

16 lines
397 B
PHP
Raw Normal View History

2024-04-25 17:46:18 +04:00
<?php
namespace nulib\file\base;
use nulib\ValueException;
class SharedFile extends FileWriter {
const USE_LOCKING = true;
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);
}
}