GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Dumper::setServer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/**
4
 * This file is part of WebHelper Parser.
5
 *
6
 * (c) James <[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
namespace WebHelper\Parser;
12
13
use WebHelper\Parser\Directive\DirectiveInterface;
14
use WebHelper\Parser\Server\ServerInterface;
15
16
/**
17
 * Web server configuration generic dumper.
18
 *
19
 * @author James <[email protected]>
20
 */
21
class Dumper
22
{
23
    /** @var Server\ServerInterface a server instance */
24
    private $server;
25
26
    /**
27
     * Setter for the server instance.
28
     *
29
     * @see Server\ServerInterface Server Documentation
30
     *
31
     * @param Server\ServerInterface $server the server instance
32
     */
33 1
    public function setServer(ServerInterface $server)
34
    {
35 1
        $this->server = $server;
36
37 1
        return $this;
38
    }
39
40
    /**
41
     * Dumps recursively the active configuration as a file.
42
     *
43
     * @param DirectiveInterface $activeConfig the active configuration to dump
44
     *
45
     * @return string the file output
46
     */
47 1
    public function dump(DirectiveInterface $activeConfig)
48
    {
49 1
        return $activeConfig->dump($this->server);
50
    }
51
}
52