Passed
Pull Request — master (#1181)
by Tarmo
06:39 queued 03:09
created

AutoMapperConfiguration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * /src/AutoMapper/UserGroup/AutoMapperConfiguration.php
5
 *
6
 * @author TLe, Tarmo Leppänen <[email protected]>
7
 */
8
9
namespace App\AutoMapper\UserGroup;
10
11
use App\AutoMapper\RestAutoMapperConfiguration;
12
use App\DTO\UserGroup\UserGroupCreate;
13
use App\DTO\UserGroup\UserGroupPatch;
14
use App\DTO\UserGroup\UserGroupUpdate;
15
16
/**
17
 * Class AutoMapperConfiguration
18
 *
19
 * @package App\AutoMapper
20
 * @author TLe, Tarmo Leppänen <[email protected]>
21
 */
22
class AutoMapperConfiguration extends RestAutoMapperConfiguration
23
{
24
    /**
25
     * Classes to use specified request mapper.
26
     *
27
     * @var array<int, string>
28
     */
29
    protected static array $requestMapperClasses = [
30
        UserGroupCreate::class,
31
        UserGroupUpdate::class,
32
        UserGroupPatch::class,
33
    ];
34
35 43
    public function __construct(
36
        protected RequestMapper $requestMapper,
37
    ) {
38 43
    }
39
}
40