Add has($name) function to FilesystemMap
This commit is contained in:
parent
02e1281373
commit
22229b5349
|
@ -43,6 +43,16 @@ class FilesystemMap implements \IteratorAggregate
|
||||||
return $this->map[$name];
|
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()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
return new \ArrayIterator($this->map);
|
return new \ArrayIterator($this->map);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user