public function hasExclusiveLock($resource = null): bool
    {
        if (null !== $resource) {
            return $this->exclusiveLock === $this->getResourceId($resource);
        }

        return null !== $this->exclusiveLock;
    }
public function hasExclusiveLock($resource = null): bool
    {
        if (null !== $resource) {
            return $this->exclusiveLock === $this->getResourceId($resource);
        }

        return null !== $this->exclusiveLock;
    }
public function hasExclusiveLock ( $ resource = null ) : bool { if ( null !== $ resource ) { return $ this -> exclusiveLock === $ this -> getResourceId ( $ resource ) ; } return null !== $ this -> exclusiveLock ; }
checks whether file is locked in exclusive 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 exclusive mode