Add has($name) function to FilesystemMap

This commit is contained in:
JHGitty 2016-01-31 00:12:35 +01:00
parent 02e1281373
commit 22229b5349

View File

@ -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);