public function isLocked($resource = null): bool
    {
        return $this->hasSharedLock($resource) || $this->hasExclusiveLock($resource);
    }
public function isLocked($resource = null): bool
    {
        return $this->hasSharedLock($resource) || $this->hasExclusiveLock($resource);
    }
public function isLocked ( $ resource = null ) : bool { return $ this -> hasSharedLock ( $ resource ) || $ this -> hasExclusiveLock ( $ resource ) ; }
checks whether file is locked

@param   resource|vfsStreamWrapper $resource
@return  bool
@since   0.10.0
@see     https://github.com/mikey179/vfsStream/issues/6
@see     https://github.com/mikey179/vfsStream/issues/40
checks whether file is locked