Completed
Push — develop ( 141adb...8f70d4 )
by Jaap
05:39
created

Payload::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of phpDocumentor.
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @author    Mike van Riel <[email protected]>
12
 * @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
13
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
14
 * @link      http://phpdoc.org
15
 */
16
17
namespace phpDocumentor\Application\Stage;
18
19
use phpDocumentor\Descriptor\ProjectDescriptorBuilder;
20
21
class Payload
22
{
23
    /**
24
     * @var array
25
     */
26
    private $config;
27
28
    /**
29
     * @var ProjectDescriptorBuilder
30
     */
31
    private $builder;
32
33 5
    public function __construct(array $config, ProjectDescriptorBuilder $builder)
34
    {
35 5
        $this->config = $config;
36 5
        $this->builder = $builder;
37 5
    }
38
39 5
    public function getConfig() : array
40
    {
41 5
        return $this->config;
42
    }
43
44
    public function getBuilder() : ProjectDescriptorBuilder
45
    {
46
        return $this->builder;
47
    }
48
}
49