Completed
Push — master ( ea5582...dd6b15 )
by Cedric
06:36
created

ContentCollection::getContents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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\Content;
16
17
/**
18
 * Class ContentCollection
19
 * @package Adlogix\ConfluenceClient\Entity\Collection
20
 * @author  Cedric Michaux <[email protected]>
21
 */
22
class ContentCollection extends Collection
23
{
24
25
    /**
26
     * @var Content[]
27
     */
28
    private $contents;
29
30
    /**
31
     * SpaceCollection constructor.
32
     *
33
     * @param Content[] $contents
34
     */
35
    public function __construct(array $contents = [])
36
    {
37
        $this->contents = $contents;
38
    }
39
40
    /**
41
     * @return Content[]
42
     */
43
    public function getContents()
44
    {
45
        return $this->contents;
46
    }
47
}
48