Completed
Push — master ( ee4b65...5b7038 )
by Iqbal
02:53
created

AbstractMiddleware   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
rs 10

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\Http\ParameterBag;
14
15
/**
16
 * @author      Iqbal Maulana <[email protected]>
17
 * @created     11/25/15
18
 */
19
abstract class AbstractMiddleware implements MiddlewareInterface
20
{
21
    /**
22
     * @var ParameterBag
23
     */
24
    protected $parameter;
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function setParameter(ParameterBag $parameter)
30
    {
31
        $this->parameter = $parameter;
32
    }
33
}
34