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
Push — master ( 3c5463...84f915 )
by Hong
16:33
created

ContainerHelperTrait::getFactory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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\FactoryInterface;
18
19
/**
20
 * ContainerHelperTrait
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 ContainerHelperTrait
28
{
29
    use ResolverAwareTrait;
30
31
    /**
32
     * @var    FactoryInterface
33
     * @access protected
34
     */
35
    protected $factory;
36
37
    /**
38
     * Inject the Factory
39
     *
40
     * @param  FactoryInterface $factory
41
     * @return $this
42
     * @access protected
43
     */
44
    protected function setFactory(FactoryInterface $factory)
45
    {
46
        $this->factory = $factory;
47
        return $this;
48
    }
49
50
    /**
51
     * Get the Factory
52
     *
53
     * @return FactoryInterface
54
     * @access protected
55
     */
56
    protected function getFactory()/*# : FactoryInterface */
57
    {
58
        return $this->factory;
59
    }
60
}
61