• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarlepp / symfony-flex-backend / #5622

22 Feb 2025 10:59PM UTC coverage: 100.0%. Remained the same
#5622

Pull #2945

php-coveralls

web-flow
Merge ca05c026b into d9edad4e5
Pull Request #2945: Chore(ci) - GitHub actions image update

2299 of 2299 relevant lines covered (100.0%)

92.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/AutoMapper/UserGroup/RequestMapper.php
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * /src/AutoMapper/UserGroup/RequestMapper.php
5
 *
6
 * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
7
 */
8

9
namespace App\AutoMapper\UserGroup;
10

11
use App\AutoMapper\RestRequestMapper;
12
use App\Entity\Role;
13
use App\Resource\RoleResource;
14
use Throwable;
15

16
/**
17
 * @package App\AutoMapper
18
 * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
19
 */
20
class RequestMapper extends RestRequestMapper
21
{
22
    /**
23
     * @var array<int, non-empty-string>
24
     */
25
    protected static array $properties = [
26
        'name',
27
        'role',
28
    ];
29

30
    public function __construct(
31
        private readonly RoleResource $roleResource,
32
    ) {
33
    }
88✔
34

35
    /**
36
     * @throws Throwable
37
     */
38
    protected function transformRole(string $role): Role
39
    {
40
        return $this->roleResource->getReference($role);
4✔
41
    }
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc