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 — 3.x (#2242)
by
unknown
02:43
created

ContainerAwareTrait::setContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Slim Framework (https://slimframework.com)
4
 *
5
 * @link      https://github.com/slimphp/Slim
6
 * @copyright Copyright (c) 2011-2017 Josh Lockhart
7
 * @license   https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
8
 */
9
namespace Slim;
10
11
use Psr\Container\ContainerInterface;
12
13
/**
14
 * Container Awareness
15
 *
16
 * Anything that requires knowledge of a ContainerInterface should use or extend this trait.
17
 */
18
trait ContainerAwareTrait
19
{
20
    /**
21
     * @var ContainerInterface
22
     */
23
    private $container;
24
25
    /**
26
     * Set a container instance
27
     *
28
     * @param ConteinerInterface $container
29
     */
30
    public function setContainer(ContainerInterface $container)
31
    {
32
        $this->container = $container;
33
    }
34
35
    /**
36
     * Get the container instance
37
     *
38
     * @return ContainerInterface
39
     */
40
    public function getContainer()
41
    {
42
        return $this->container;
43
    }
44
}
45