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.

ResolverAwareTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResolver() 0 4 1
A setResolver() 0 5 1
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Di
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Di\Traits;
16
17
use Phossa2\Di\Interfaces\ResolverInterface;
18
19
/**
20
 * ResolverAwareTrait
21
 *
22
 * @package Phossa2\Di
23
 * @author  Hong Zhang <[email protected]>
24
 * @version 2.0.0
25
 * @since   2.0.0 added
26
 */
27
trait ResolverAwareTrait
28
{
29
    /**
30
     * @var    ResolverInterface
31
     * @access protected
32
     */
33
    protected $resolver;
34
35
    /**
36
     * Get the resolver
37
     *
38
     * @return ResolverInterface
39
     * @access protected
40
     */
41
    protected function getResolver()/*# : ResolverInterface */
42
    {
43
        return $this->resolver;
44
    }
45
46
    /**
47
     * Set the resolver
48
     *
49
     * @param  ResolverInterface $resolver
50
     * @return $this
51
     * @access protected
52
     */
53
    protected function setResolver(ResolverInterface $resolver)
54
    {
55
        $this->resolver = $resolver;
56
        return $this;
57
    }
58
}
59