Completed
Push — master ( 0645c0...b651ea )
by Jaap
03:02
created

ApiSetDescriptor::getSettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
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
 * @link https://phpdoc.org
12
 */
13
14
namespace phpDocumentor\Descriptor;
15
16
use phpDocumentor\Configuration\ApiSpecification;
17
use phpDocumentor\Configuration\Source;
18
19
final class ApiSetDescriptor extends DocumentationSetDescriptor
20
{
21
    /** @var ApiSpecification */
22
    private $apiSpecification;
23
24
    public function __construct(string $name, Source $source, string $output, ApiSpecification $apiSpecification)
25
    {
26
        $this->name = $name;
27
        $this->source = $source;
28
        $this->output = $output;
29
        $this->apiSpecification = $apiSpecification;
30
    }
31
32
    public function getSettings() : ApiSpecification
33
    {
34
        return $this->apiSpecification;
35
    }
36
}
37