SpaceCollection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSpaces() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Adlogix package.
4
 *
5
 * (c) Allan Segebarth <[email protected]>
6
 * (c) Jean-Jacques Courtens <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Adlogix\ConfluenceClient\Entity\Collection;
13
14
15
use Adlogix\ConfluenceClient\Entity\Space;
16
17
/**
18
 * Class SpaceCollection
19
 * @package Adlogix\ConfluenceClient\Entity\Collection
20
 * @author  Cedric Michaux <[email protected]>
21
 */
22
class SpaceCollection extends Collection
23
{
24
25
    /**
26
     * @var Space[]
27
     */
28
    private $spaces;
29
30
    /**
31
     * SpaceCollection constructor.
32
     *
33
     * @param Space[] $spaces
34
     */
35
    public function __construct(array $spaces = [])
36
    {
37
        $this->spaces = $spaces;
38
    }
39
40
    /**
41
     * @return Space
42
     */
43
    public function getSpaces()
44
    {
45
        return $this->spaces;
46
    }
47
}
48