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

api-platform / core / 16524130380

25 Jul 2025 02:14PM UTC coverage: 22.07% (+0.03%) from 22.039%
16524130380

push

github

web-flow
feat(metadata): introduce metadata mutators for resource & operations (#7213)

Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>

40 of 106 new or added lines in 9 files covered. (37.74%)

112 existing lines in 2 files now uncovered.

11573 of 52437 relevant lines covered (22.07%)

23.46 hits per line

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

0.0
/src/Metadata/AsResourceMutator.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Metadata;
15

16
#[\Attribute(\Attribute::TARGET_CLASS)]
17
class AsResourceMutator
18
{
19
    /**
20
     * @param class-string $resourceClass
21
     */
22
    public function __construct(
23
        public readonly string $resourceClass,
24
    ) {
NEW
25
    }
×
26
}
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

© 2025 Coveralls, Inc