Completed
Push — master ( a47353...f0e046 )
by Rafał
08:36
created

Site::getHomepage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
4
 *
5
 * Copyright 2016 Sourcefabric z.u. and contributors.
6
 *
7
 * For the full copyright and license information, please see the
8
 * AUTHORS and LICENSE files distributed with this source code.
9
 *
10
 * @copyright 2016 Sourcefabric z.ú.
11
 * @license http://www.superdesk.org/license
12
 */
13
namespace SWP\Bundle\MultiTenancyBundle\Document;
14
15
use SWP\Component\MultiTenancy\Model\RouteInterface;
16
use SWP\Component\MultiTenancy\Model\SiteDocumentInterface;
17
18
class Site implements SiteDocumentInterface
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $id;
24
25
    /**
26
     * @var RouteInterface
27
     */
28
    protected $homepage;
29
30
    /**
31
     * @var object
32
     */
33
    protected $children;
34
35
    public function setId($id)
36
    {
37
        $this->id = $id;
38
    }
39
40
    public function getId()
41
    {
42
        return $this->id;
43
    }
44
45
    public function getChildren()
46
    {
47
        return $this->children;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function getHomepage()
54
    {
55
        return $this->homepage;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function setHomepage(RouteInterface $homepage)
62
    {
63
        $this->homepage = $homepage;
64
    }
65
}
66