public function hasSharedLock($resource = null): bool
    {
        if (null !== $resource) {
            return isset($this->sharedLock[$this->getResourceId($resource)]);
        }

        return !empty($this->sharedLock);
    }
public function hasSharedLock($resource = null): bool
    {
        if (null !== $resource) {
            return isset($this->sharedLock[$this->getResourceId($resource)]);
        }

        return !empty($this->sharedLock);
    }
public function hasSharedLock ( $ resource = null ) : bool { if ( null !== $ resource ) { return isset ( $ this -> sharedLock [ $ this -> getResourceId ( $ resource ) ] ) ; } return ! empty ( $ this -> sharedLock ) ; }
checks whether file is locked in shared mode

@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 in shared mode