ThemeManagerTrait::getThemeManager()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Manager;
13
14
/**
15
 * Theme manager trait.
16
 *
17
 * @author webeweb <https://github.com/webeweb>
18
 * @package WBW\Bundle\CoreBundle\Manager
19
 */
20
trait ThemeManagerTrait {
21
22
    /**
23
     * Theme manager.
24
     *
25
     * @var ThemeManager|null
26
     */
27
    private $themeManager;
28
29
    /**
30
     * Get the theme manager.
31
     *
32
     * @return ThemeManager|null Returns the theme manager.
33
     */
34 60
    public function getThemeManager(): ?ThemeManager {
35 60
        return $this->themeManager;
36
    }
37
38
    /**
39
     * Set the theme manager.
40
     *
41
     * @param ThemeManager|null $themeManager The theme manager.
42
     * @return self Returns this instance.
43
     */
44 140
    protected function setThemeManager(?ThemeManager $themeManager): self {
45 140
        $this->themeManager = $themeManager;
46 140
        return $this;
47
    }
48
}
49