DbObject: help IDE, render newline after a...

...disabled v1 object
This commit is contained in:
Thomas Gelf 2016-11-04 19:52:21 +01:00
parent 5168f5e887
commit 87fe623d11
2 changed files with 13 additions and 1 deletions

View File

@ -1079,6 +1079,12 @@ abstract class DbObject
return $objects;
}
/**
* @param DbConnection $connection
* @param bool $force
*
* @return static[]
*/
public static function prefetchAll(DbConnection $connection, $force = false)
{
$dummy = static::create();

View File

@ -783,6 +783,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
return $this->arguments;
}
/**
* @return IcingaObjectImports
*/
public function imports()
{
$this->assertImportsSupport();
@ -1188,6 +1191,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
return $this;
}
/**
* @return CustomVariables
*/
public function vars()
{
$this->assertCustomVarsSupport();
@ -2110,7 +2116,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
return
"# --- This object has been disabled ---\n"
. preg_replace('~^~m', '# ', trim($str))
. "\n";
. "\n\n";
} else {
return $str;
}