Module: add getNamespace() method

This commit is contained in:
Thomas Gelf 2015-11-12 19:52:51 +01:00
parent 997c5a0a13
commit b7189382fb
1 changed files with 10 additions and 0 deletions

View File

@ -590,6 +590,16 @@ class Module
return $this->name;
}
/**
* Get the module namespace
*
* @return string
*/
public function getNamespace()
{
return 'Icinga\\Module\\' . ucfirst($this->getName());
}
/**
* Get the module version
*