ChangeMod   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A key() 0 4 1
A value() 0 4 1
1
<?php
2
3
namespace LaravelLangBundler\BundleItems\Mods;
4
5
use LaravelLangBundler\BundleItems\ItemWrapper;
6
7
class ChangeMod extends ItemWrapper
8
{
9
    /**
10
     * Alter key and return.
11
     *
12
     * @param string $key
13
     *
14
     * @return string
15
     */
16
    public function key($key)
17
    {
18
        return $this->wrapperParameters['new'];
19
    }
20
21
    /**
22
     * Alter value and return.
23
     *
24
     * @param mixed $value
25
     *
26
     * @return mixed
27
     */
28
    public function value($value)
29
    {
30
        return $value;
31
    }
32
}
33