summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Common/CaptionDisabled.php
blob: 26344c518f44b6792cbbf7d1789c20d33b9148e6 (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
<?php

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

namespace Icinga\Module\Icingadb\Common;

trait CaptionDisabled
{
    protected $captionDisabled = false;

    /**
     * @return bool
     */
    public function isCaptionDisabled(): bool
    {
        return $this->captionDisabled;
    }

    /**
     * @param bool $captionDisabled
     *
     * @return $this
     */
    public function setCaptionDisabled(bool $captionDisabled = true): self
    {
        $this->captionDisabled = $captionDisabled;

        return $this;
    }
}