summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Common/ViewMode.php
blob: 841f28b1ceeb445d472e37e7c89e81fb7d409f02 (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) 2020 Icinga GmbH | GPLv2 */

namespace Icinga\Module\Icingadb\Common;

trait ViewMode
{
    /** @var string */
    protected $viewMode;

    /**
     * Get the view mode
     *
     * @return ?string
     */
    public function getViewMode()
    {
        return $this->viewMode;
    }

    /**
     * Set the view mode
     *
     * @param string $viewMode
     *
     * @return $this
     */
    public function setViewMode(string $viewMode): self
    {
        $this->viewMode = $viewMode;

        return $this;
    }
}