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.

ProjectVersion   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 65
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 3 1
A setVersion() 0 3 1
A getTitle() 0 3 1
A setIconIdentifier() 0 3 1
A setTitle() 0 3 1
A getIconIdentifier() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace KamiYang\ProjectVersion\Service;
5
6
/*
7
 * This file is part of the ProjectVersion project.
8
 *
9
 * It is free software: you can redistribute it and/or modify
10
 * it under the terms of the GNU General Public License as published by
11
 * the Free Software Foundation, either version 3 of the License, or
12
 * (at your option) any later version.
13
 *
14
 * For the full copyright and license information, please read
15
 * LICENSE file that was distributed with this source code.
16
 */
17
18
use TYPO3\CMS\Core\SingletonInterface;
19
20
/**
21
 * Class ProjectVersion
22
 */
23
class ProjectVersion implements SingletonInterface
24
{
25
    const UNKNOWN_VERSION = 'LLL:EXT:project_version/Resources/Private/Language/Backend.xlf:toolbarItems.sysinfo.project-version.unknown';
26
27
    /**
28
     * @var string $title
29
     */
30
    protected $title = 'LLL:EXT:project_version/Resources/Private/Language/Backend.xlf:toolbarItems.sysinfo.project-version';
31
32
    /**
33
     * @var string $version
34
     */
35
    protected $version = self::UNKNOWN_VERSION;
36
37
    /**
38
     * @var string
39
     */
40
    protected $iconIdentifier = 'information-project-version';
41
42
    /**
43
     * @return string
44
     */
45
    public function getTitle(): string
46
    {
47
        return $this->title;
48
    }
49
50
    /**
51
     * @param string $title
52
     */
53
    public function setTitle(string $title)
54
    {
55
        $this->title = $title;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getVersion(): string
62
    {
63
        return $this->version;
64
    }
65
66
    /**
67
     * @param string $version
68
     */
69
    public function setVersion(string $version)
70
    {
71
        $this->version = $version;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getIconIdentifier(): string
78
    {
79
        return $this->iconIdentifier;
80
    }
81
82
    /**
83
     * @param string $iconIdentifier
84
     */
85
    public function setIconIdentifier(string $iconIdentifier)
86
    {
87
        $this->iconIdentifier = $iconIdentifier;
88
    }
89
}
90