Total Complexity | 1 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER)] |
||
20 | #[Qualifier] |
||
21 | final class ResourceParam implements RequestParamInterface |
||
22 | { |
||
23 | /** @var string */ |
||
24 | public $param; |
||
25 | |||
26 | /** @var string */ |
||
27 | public $uri; |
||
28 | |||
29 | /** @var bool */ |
||
30 | public $templated; |
||
31 | |||
32 | /** |
||
33 | * @param array{uri?: string, param?: string, templated?: bool} $values |
||
34 | * |
||
35 | * @SuppressWarnings(PHPMD.BooleanArgumentFlag) |
||
36 | */ |
||
37 | public function __construct(array $values = [], string $uri = '', string $param = '', bool $templated = false) |
||
44 |