ObjectsCommand: cleanup

This commit is contained in:
Thomas Gelf 2018-02-25 17:44:46 +01:00
parent 3da917a400
commit f5b4769f6e

View File

@ -2,7 +2,6 @@
namespace Icinga\Module\Director\Cli; namespace Icinga\Module\Director\Cli;
use Icinga\Module\Director\Cli\Command;
use Icinga\Module\Director\Objects\IcingaObject; use Icinga\Module\Director\Objects\IcingaObject;
class ObjectsCommand extends Command class ObjectsCommand extends Command
@ -87,6 +86,9 @@ class ObjectsCommand extends Command
echo $this->renderJson($res, !$this->params->shift('no-pretty')); echo $this->renderJson($res, !$this->params->shift('no-pretty'));
} }
/**
* @return IcingaObject[]
*/
protected function getObjects() protected function getObjects()
{ {
if ($this->objects === null) { if ($this->objects === null) {