Completed
Push — master ( 692aa1...25e5a7 )
by Paweł
60:22
created

Tenant::getThemeName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of the Superdesk Web Publisher Core Bundle.
5
 *
6
 * Copyright 2016 Sourcefabric z.ú. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2016 Sourcefabric z.ú
12
 * @license http://www.superdesk.org/license
13
 */
14
15
namespace SWP\Bundle\CoreBundle\Model;
16
17
use SWP\Bundle\ContentBundle\Model\RouteInterface;
18
use SWP\Component\MultiTenancy\Model\Tenant as BaseTenant;
19
20
class Tenant extends BaseTenant implements TenantInterface
21
{
22
    /**
23
     * @var string
24
     */
25
    protected $themeName;
26
27
    /**
28
     * @var RouteInterface
29
     */
30
    protected $homepage;
31
32
    /**
33
     * @var bool
34
     */
35
    protected $ampEnabled = false;
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getThemeName()
41
    {
42
        return $this->themeName;
43
    }
44
45 42
    /**
46
     * {@inheritdoc}
47 42
     */
48
    public function setThemeName($themeName)
49
    {
50
        $this->themeName = $themeName;
51
    }
52
53 102
    /**
54
     * {@inheritdoc}
55 102
     */
56 102
    public function getHomepage()
57
    {
58
        return $this->homepage;
59
    }
60
61 2
    /**
62
     * {@inheritdoc}
63 2
     */
64
    public function setHomepage(RouteInterface $homepage)
65
    {
66
        $this->homepage = $homepage;
67
    }
68
69 102
    /**
70
     * {@inheritdoc}
71 102
     */
72 102
    public function isAmpEnabled(): bool
73
    {
74
        return $this->ampEnabled;
75
    }
76
77 7
    /**
78
     * {@inheritdoc}
79 7
     */
80
    public function setAmpEnabled(bool $ampEnabled)
81
    {
82
        $this->ampEnabled = $ampEnabled;
83
    }
84
}
85