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.

Container   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 44
rs 10
wmc 5

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAlias() 0 3 2
A getStub() 0 3 1
A getManifest() 0 3 1
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
namespace TYPO3\PharStreamWrapper\Phar;
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 Container
16
{
17
    /**
18
     * @var Stub
19
     */
20
    private $stub;
21
22
    /**
23
     * @var Manifest
24
     */
25
    private $manifest;
26
27
    /**
28
     * @param Stub $stub
29
     * @param Manifest $manifest
30
     */
31
    public function __construct(Stub $stub, Manifest $manifest)
32
    {
33
        $this->stub = $stub;
34
        $this->manifest = $manifest;
35
    }
36
37
    /**
38
     * @return Stub
39
     */
40
    public function getStub(): Stub
41
    {
42
        return $this->stub;
43
    }
44
45
    /**
46
     * @return Manifest
47
     */
48
    public function getManifest(): Manifest
49
    {
50
        return $this->manifest;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getAlias(): string
57
    {
58
        return $this->manifest->getAlias() ?: $this->stub->getMappedAlias();
59
    }
60
}
61