Test Failed
Push — master ( 097a15...b8f91e )
by Martin
01:33
created

ContainerMapper::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace KingsonDe\Marshal\Example\Mapper;
6
7
use KingsonDe\Marshal\AbstractXmlMapper;
8
use KingsonDe\Marshal\Example\Model\Service;
9
10
class ContainerMapper extends AbstractXmlMapper {
11
12
    public function map(Service ...$services) {
13
        return [
14
            'container' => [
15
                $this->attributes() => [
16
                    'xmlns'              => 'http://symfony.com/schema/dic/services',
17
                    'xmlns:xsi'          => 'http://www.w3.org/2001/XMLSchema-instance',
18
                ],
19
                'services' => $this->collection(new ServiceMapper(), $services),
20
            ],
21
        ];
22
    }
23
}
24