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; return $objects;
} }
/**
* @param DbConnection $connection
* @param bool $force
*
* @return static[]
*/
public static function prefetchAll(DbConnection $connection, $force = false) public static function prefetchAll(DbConnection $connection, $force = false)
{ {
$dummy = static::create(); $dummy = static::create();

View File

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