nulib-base/php/src/file/SharedFile.php

16 lines
391 B
PHP

<?php
namespace nulib\file;
use nulib\exceptions;
class SharedFile extends FileWriter {
const USE_LOCKING = true;
const DEFAULT_MODE = "c+b";
function __construct($file, ?string $mode=null, ?bool $throwOnError=null, ?bool $allowLocking=null) {
if ($file === null) throw exceptions::null_value("file");
parent::__construct($file, $mode, $throwOnError, $allowLocking);
}
}