Completed
Pull Request — master (#1)
by Rafał
03:36 queued 01:22
created

Site::getChildren()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
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\MultiTenancyBundle\Document;
14
15
use SWP\Component\MultiTenancy\Model\SiteDocumentInterface;
16
17
class Site implements SiteDocumentInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $id;
23
24
    /**
25
     * @var Route
26
     */
27
    protected $homepage;
28
29
    /**
30
     * @var object
31
     */
32
    protected $children;
33
34
    public function setId($id)
35
    {
36
        $this->id = $id;
37
    }
38
39
    public function getId()
40
    {
41
        return $this->id;
42
    }
43
44
    public function getChildren()
45
    {
46
        return $this->children;
47
    }
48
}
49