2021-05-04 09:44:27 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|