Allow getting all mount options as array
This commit is contained in:
parent
82a62fd249
commit
4f0f175f8b
|
@ -209,4 +209,13 @@ class MountPoint implements IMountPoint {
|
|||
public function getOption($name, $default) {
|
||||
return isset($this->mountOptions[$name]) ? $this->mountOptions[$name] : $default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all options for the mount
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getOptions() {
|
||||
return $this->mountOptions;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,4 +64,11 @@ interface IMountPoint {
|
|||
* @return mixed
|
||||
*/
|
||||
public function getOption($name, $default);
|
||||
|
||||
/**
|
||||
* Get all options for the mount
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getOptions();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue