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

Site   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 4 1
A getId() 0 4 1
A getChildren() 0 4 1
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