Completed
Push — master ( aa8da2...bedcf7 )
by Korotkov
02:14
created

SetContainerTrait::container()   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
declare(strict_types = 1);
4
5
/**
6
 * Date: 21.04.2017
7
 * Time: 11:40
8
 *
9
 * @author    : Korotkov Danila <[email protected]>
10
 * @copyright Copyright (c) 2016, Korotkov Danila
11
 * @license   http://www.gnu.org/licenses/gpl.html GNU GPLv3.0
12
 */
13
14
namespace Rudra;
15
16
/**
17
 * trait SetContainerTrait
18
 *
19
 * @package Rudra
20
 */
21
trait SetContainerTrait
22
{
23
24
    /**
25
     * @var ContainerInterface
26
     */
27
    protected $container;
28
29
    /**
30
     * Middleware constructor.
31
     *
32
     * @param ContainerInterface $container
33
     */
34
    public function __construct(ContainerInterface $container)
35
    {
36
        $this->container = $container;
37
    }
38
39
    /**
40
     * @return ContainerInterface
41
     */
42
    public function container(): ContainerInterface
43
    {
44
        return $this->container;
45
    }
46
}
47