summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Command/Object/GetObjectCommand.php
blob: 8448f8dedcbeaeb9ce8cbe45d3adcd534a567fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */

namespace Icinga\Module\Icingadb\Command\Object;

class GetObjectCommand extends ObjectsCommand
{
    /** @var array */
    protected $attributes;

    /**
     * Get the attributes to query
     *
     * @return ?array
     */
    public function getAttributes()
    {
        return $this->attributes;
    }

    /**
     * Set the attributes to query
     *
     * @param array $attributes
     *
     * @return $this
     */
    public function setAttributes(array $attributes): self
    {
        $this->attributes = $attributes;

        return $this;
    }
}