Completed
Push — master ( ed0613...204a50 )
by Martin
01:42
created

ArgumentMapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
rs 10
c 0
b 0
f 0
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 ArgumentMapper extends AbstractXmlMapper {
11
12
    public function map(Service $service) {
13
        return [
14
            'argument' => [
15
                $this->attributes() => [
16
                    'type' => 'service',
17
                    'id'   => $service->getId(),
18
                ],
19
            ]
20
        ];
21
    }
22
}
23