Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ActionOptions
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\Core\Attributes;
3
4use Apie\Core\Enums\RequestMethod;
5use Attribute;
6
7#[Attribute(Attribute::TARGET_METHOD|Attribute::IS_REPEATABLE)]
8class ActionOptions
9{
10    /**
11     * @param array<string, mixed> $placeholders
12     */
13    public function __construct(
14        public readonly ?string $pathRemainder = null,
15        public readonly ?RequestMethod $requestMethod = null,
16        public readonly array $placeholders = [],
17    ) {
18    }
19}