16 lines
		
	
	
		
			398 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			398 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace nur\sery\os\file;
 | 
						|
 | 
						|
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);
 | 
						|
  }
 | 
						|
}
 |