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.
Completed
Push — master ( 3b4bdc...be0fbc )
by Loick
8s
created

Config::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
c 2
b 0
f 2
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
crap 1
1
<?php
2
3
/*
4
 * This file is part of the composer-changelogs project.
5
 *
6
 * (c) Loïck Piera <[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 Pyrech\ComposerChangelogs\Config;
13
14
class Config
15
{
16
    /** @var string */
17
    private $commitAuto;
18
19
    /** @var string|null */
20
    private $commitBinFile;
21
22
    /** @var string */
23
    private $commitMessage;
24
25
    /**
26
     * @param string      $commitAuto
27
     * @param string|null $commitBinFile
28
     * @param string      $commitMessage
29
     */
30 22
    public function __construct($commitAuto, $commitBinFile, $commitMessage)
31
    {
32 22
        $this->commitAuto = $commitAuto;
33 22
        $this->commitBinFile = $commitBinFile;
34 22
        $this->commitMessage = $commitMessage;
35 22
    }
36
37
    /**
38
     * @return string
39
     */
40 21
    public function getCommitAuto()
41
    {
42 21
        return $this->commitAuto;
43
    }
44
45
    /**
46
     * @return string|null
47
     */
48 18
    public function getCommitBinFile()
49
    {
50 18
        return $this->commitBinFile;
51
    }
52
53
    /**
54
     * @return string
55
     */
56 6
    public function getCommitMessage()
57
    {
58 6
        return $this->commitMessage;
59
    }
60
}
61