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
Pull Request — master (#46)
by
unknown
09:48
created

Config::getPostUpdatePriority()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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
    /** @var string[] */
26
    private $gitlabHosts;
27
28
    /** @var int */
29
    private $postUpdatePriority;
30
31
    /**
32
     * @param string      $commitAuto
33
     * @param string|null $commitBinFile
34 26
     * @param string      $commitMessage
35
     * @param string[]    $gitlabHosts
36 26
     * @param int         $postUpdatePriority
37 26
     */
38 26
    public function __construct($commitAuto, $commitBinFile, $commitMessage, array $gitlabHosts, $postUpdatePriority)
39 26
    {
40 26
        $this->commitAuto = $commitAuto;
41
        $this->commitBinFile = $commitBinFile;
42
        $this->commitMessage = $commitMessage;
43
        $this->gitlabHosts = $gitlabHosts;
44
        $this->postUpdatePriority = $postUpdatePriority;
45 24
    }
46
47 24
    /**
48
     * @return string
49
     */
50
    public function getCommitAuto()
51
    {
52
        return $this->commitAuto;
53 20
    }
54
55 20
    /**
56
     * @return string|null
57
     */
58
    public function getCommitBinFile()
59
    {
60
        return $this->commitBinFile;
61 6
    }
62
63 6
    /**
64
     * @return string
65
     */
66
    public function getCommitMessage()
67
    {
68
        return $this->commitMessage;
69 26
    }
70
71 26
    /**
72
     * @return string[]
73
     */
74
    public function getGitlabHosts()
75
    {
76
        return $this->gitlabHosts;
77
    }
78
79
    /**
80
     * @return int
81
     */
82
    public function getPostUpdatePriority()
83
    {
84
        return $this->postUpdatePriority;
85
    }
86
}
87