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.
Passed
Pull Request — master (#17)
by Oliver
01:48
created

AliasReference::getAlias()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
namespace TYPO3\PharStreamWrapper\Resolver;
4
5
/*
6
 * This file is part of the TYPO3 project.
7
 *
8
 * It is free software; you can redistribute it and/or modify it under the terms
9
 * of the MIT License (MIT). For the full copyright and license information,
10
 * please read the LICENSE file that was distributed with this source code.
11
 *
12
 * The TYPO3 project - inspiring people to share!
13
 */
14
15
class AliasReference
16
{
17
    /**
18
     * @var string
19
     */
20
    private $baseName;
21
22
    /**
23
     * @var string
24
     */
25
    private $alias;
26
27
    /**
28
     * @param string $baseName
29
     * @param string $alias
30
     */
31
    public function __construct(string $baseName, string $alias)
32
    {
33
        $this->baseName = $baseName;
34
        $this->alias = $alias;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function __toString(): string
41
    {
42
        return $this->baseName;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getBaseName(): string
49
    {
50
        return $this->baseName;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getAlias(): string
57
    {
58
        return $this->alias;
59
    }
60
}
61