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

api-platform / core / 3904303394

pending completion
3904303394

Pull #5332

github

GitHub
Merge 2e0a3ceae into 965332bc8
Pull Request #5332: Revert "chore(deprecation): Only use ValueResolverInterface if it exists"

2 of 2 new or added lines in 1 file covered. (100.0%)

7939 of 12085 relevant lines covered (65.69%)

81.77 hits per line

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

0.0
/src/Api/UriVariableTransformerInterface.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\Api;
15

16
use ApiPlatform\Exception\InvalidUriVariableException;
17

18
interface UriVariableTransformerInterface
19
{
20
    /**
21
     * Transforms the value of a URI variable (identifier) to its type.
22
     *
23
     * @param mixed $value   The URI variable value to transform
24
     * @param array $types   The guessed type behind the URI variable
25
     * @param array $context Options available to the transformer
26
     *
27
     * @throws InvalidUriVariableException Occurs when the URI variable could not be transformed
28
     */
29
    public function transform(mixed $value, array $types, array $context = []);
×
30

31
    /**
32
     * Checks whether the value of a URI variable can be transformed to its type by this transformer.
33
     *
34
     * @param mixed $value   The URI variable value to transform
35
     * @param array $types   The types to which the URI variable value should be transformed
36
     * @param array $context Options available to the transformer
37
     */
38
    public function supportsTransformation(mixed $value, array $types, array $context = []): bool;
×
39
}
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