Passed
Push — master ( 501fc3...f64e27 )
by Paweł
47:53
created

Tenant::getThemeName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
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 string
34
     */
35
    protected $domainName;
36
37
    /**
38
     * @var bool
39
     */
40
    protected $ampEnabled = false;
41
42
    /**
43
     * {@inheritdoc}
44
     */
45 37
    public function getThemeName()
46
    {
47 37
        return $this->themeName;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53 86
    public function setThemeName($themeName)
54
    {
55 86
        $this->themeName = $themeName;
56 86
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61 2
    public function getHomepage()
62
    {
63 2
        return $this->homepage;
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69 86
    public function setHomepage(RouteInterface $homepage)
70
    {
71 86
        $this->homepage = $homepage;
72 86
    }
73
74
    /**
75
     * {@inheritdoc}
76
     */
77 7
    public function getDomainName()
78
    {
79 7
        return $this->domainName;
80
    }
81
82
    /**
83
     * {@inheritdoc}
84
     */
85 1
    public function setDomainName($domainName)
86
    {
87 1
        $this->domainName = $domainName;
88 1
    }
89
90
    /**
91
     * {@inheritdoc}
92
     */
93 8
    public function isAmpEnabled(): bool
94
    {
95 8
        return $this->ampEnabled;
96
    }
97
98
    /**
99
     * {@inheritdoc}
100
     */
101 86
    public function setAmpEnabled(bool $ampEnabled)
102
    {
103 86
        $this->ampEnabled = $ampEnabled;
104 86
    }
105
}
106