diff --git a/FilesystemMap.php b/FilesystemMap.php index 8abd2b2..b4313ac 100644 --- a/FilesystemMap.php +++ b/FilesystemMap.php @@ -43,6 +43,16 @@ class FilesystemMap implements \IteratorAggregate return $this->map[$name]; } + /** + * @param string $name name of a filesystem + * + * @return bool + */ + public function has($name) + { + return isset($this->map[$name]); + } + public function getIterator() { return new \ArrayIterator($this->map);