ConcatArgumentResolver   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 23
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A doResolve() 0 8 2
1
<?php declare(strict_types=1);
2
3
namespace Diezz\YamlToObjectMapper\Resolver;
4
5
class ConcatArgumentResolver extends CustomArgumentResolver
6
{
7
    /**
8
     * @var ArgumentResolver[]
9
     */
10
    private array $parts;
11
12
    /**
13
     * @param ArgumentResolver[] $parts
14
     */
15 1
    public function __construct(array $parts)
16
    {
17 1
        $this->parts = $parts;
18 1
    }
19
20 1
    protected function doResolve($context = null)
21
    {
22 1
        $output = "";
23 1
        foreach ($this->parts as $item) {
24 1
            $output .= $item->resolve($context);
25
        }
26
27 1
        return $output;
28
    }
29
}
30