summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Common/ObjectLinkDisabled.php
blob: ca8283f5493b12e7dd342e0a26cb5ca16db6cc50 (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\Common;

trait ObjectLinkDisabled
{
    /** @var bool */
    protected $objectLinkDisabled = false;

    /**
     * Set whether list items should render host and service links
     *
     * @param bool $state
     *
     * @return $this
     */
    public function setObjectLinkDisabled(bool $state = true): self
    {
        $this->objectLinkDisabled = $state;

        return $this;
    }

    /**
     * Get whether list items should render host and service links
     *
     * @return bool
     */
    public function getObjectLinkDisabled(): bool
    {
        return $this->objectLinkDisabled;
    }
}