AbstractMiddleware   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setParameter() 0 4 1
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