Merge pull request #135 from JHGitty/patch-1

Add has($name) function to FilesystemMap
This commit is contained in:
Andrew Kovalyov 2016-02-04 06:56:56 +00:00
commit 07a46cc277

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