2021-05-04 09:44:27 -04:00
|
|
|
<?php
|
|
|
|
|
|
2026-02-23 17:12:09 -05:00
|
|
|
// SPDX-FileCopyrightText: 2021 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2021-05-04 09:44:27 -04:00
|
|
|
|
|
|
|
|
namespace Icinga\Module\Icingadb\Command\Object;
|
|
|
|
|
|
2023-03-01 05:28:18 -05:00
|
|
|
class GetObjectCommand extends ObjectsCommand
|
2021-05-04 09:44:27 -04:00
|
|
|
{
|
|
|
|
|
/** @var array */
|
|
|
|
|
protected $attributes;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the attributes to query
|
|
|
|
|
*
|
2021-09-22 04:21:15 -04:00
|
|
|
* @return ?array
|
2021-05-04 09:44:27 -04:00
|
|
|
*/
|
|
|
|
|
public function getAttributes()
|
|
|
|
|
{
|
|
|
|
|
return $this->attributes;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set the attributes to query
|
|
|
|
|
*
|
|
|
|
|
* @param array $attributes
|
|
|
|
|
*
|
|
|
|
|
* @return $this
|
|
|
|
|
*/
|
2021-09-22 04:21:15 -04:00
|
|
|
public function setAttributes(array $attributes): self
|
2021-05-04 09:44:27 -04:00
|
|
|
{
|
|
|
|
|
$this->attributes = $attributes;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
}
|