Completed
Push — master ( a682ba...4851b3 )
by Paweł
40:50
created

Tenant   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 65
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getThemeName() 0 4 1
A setThemeName() 0 4 1
A getHomepage() 0 4 1
A setHomepage() 0 4 1
A getDomainName() 0 4 1
A setDomainName() 0 4 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
     * {@inheritdoc}
39
     */
40 44
    public function getThemeName()
41
    {
42 44
        return $this->themeName;
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48 103
    public function setThemeName($themeName)
49
    {
50 103
        $this->themeName = $themeName;
51 103
    }
52
53
    /**
54
     * {@inheritdoc}
55
     */
56 2
    public function getHomepage()
57
    {
58 2
        return $this->homepage;
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64 103
    public function setHomepage(RouteInterface $homepage)
65
    {
66 103
        $this->homepage = $homepage;
67 103
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72 6
    public function getDomainName()
73
    {
74 6
        return $this->domainName;
75
    }
76
77
    /**
78
     * {@inheritdoc}
79
     */
80 1
    public function setDomainName($domainName)
81
    {
82 1
        $this->domainName = $domainName;
83 1
    }
84
}
85