org\bovigo\vfs\vfsStreamWrapper::stream_lock PHP Method

stream_lock() public method

set lock status for stream
See also: https://github.com/mikey179/vfsStream/issues/6
See also: https://github.com/mikey179/vfsStream/issues/31
See also: https://github.com/mikey179/vfsStream/issues/40
Since: 0.10.0
public stream_lock ( integer $operation ) : boolean
$operation integer
return boolean
    public function stream_lock($operation)
    {
        if ((LOCK_NB & $operation) == LOCK_NB) {
            $operation = $operation - LOCK_NB;
        }
        return $this->content->lock($this, $operation);
    }