AbstractMiddleware::setParameter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * This file is part of the Borobudur-Kernel package.
4
 *
5
 * (c) Hexacodelabs <http://hexacodelabs.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Borobudur\Kernel\Middleware;
12
13
use Borobudur\DependencyInjection\ContainerAwareInterface;
14
use Borobudur\DependencyInjection\ContainerAwareTrait;
15
use Borobudur\Http\ParameterBag;
16
17
/**
18
 * @author      Iqbal Maulana <[email protected]>
19
 * @created     11/25/15
20
 */
21
abstract class AbstractMiddleware implements MiddlewareInterface, ContainerAwareInterface
22
{
23
    use ContainerAwareTrait;
24
25
    /**
26
     * @var ParameterBag
27
     */
28
    protected $parameter;
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function setParameter(ParameterBag $parameter)
34
    {
35
        $this->parameter = $parameter;
36
    }
37
}
38