Merge pull request #135 from JHGitty/patch-1
Add has($name) function to FilesystemMap
This commit is contained in:
commit
07a46cc277
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user