ParameterBag::set()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/*
3
 * This file is part of the Borobudur-Http 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\Http;
12
13
/**
14
 * @author      Iqbal Maulana <[email protected]>
15
 * @created     7/18/15
16
 */
17
class ParameterBag extends AbstractParameterBag
18
{
19
    /**
20
     * @param string $key
21
     * @param mixed  $value
22
     *
23
     * @return $this
24
     */
25
    public function set($key, $value)
26
    {
27
        $this->parameters[$key] = $value;
28
29
        return $this;
30
    }
31
}
32