Issues (105)

src/AutoMapper/User/AutoMapperConfiguration.php (1 issue)

1
<?php
2
declare(strict_types = 1);
3
/**
4
 * /src/AutoMapper/User/AutoMapperConfiguration.php
5
 *
6
 * @author TLe, Tarmo Leppänen <[email protected]>
7
 */
8
9
namespace App\AutoMapper\User;
10
11
use App\AutoMapper\RestAutoMapperConfiguration;
12
use App\DTO\User\UserCreate;
13
use App\DTO\User\UserPatch;
14
use App\DTO\User\UserUpdate;
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, class-string>
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<int, class-string> at position 4 could not be parsed: Unknown type name 'class-string' at position 4 in array<int, class-string>.
Loading history...
28
     */
29
    protected static array $requestMapperClasses = [
30
        UserCreate::class,
31
        UserUpdate::class,
32
        UserPatch::class,
33
    ];
34
35 78
    public function __construct(
36
        RequestMapper $requestMapper,
37
    ) {
38 78
        parent::__construct($requestMapper);
39
    }
40
}
41