Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Context | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Attributes; |
| 3 | |
| 4 | use Attribute; |
| 5 | |
| 6 | /** |
| 7 | * This is used on parameters to tell this argument comes from the context. If the context key is missing |
| 8 | * the method is considered not allowed to run right now. |
| 9 | */ |
| 10 | #[Attribute(Attribute::TARGET_PARAMETER)] |
| 11 | final class Context |
| 12 | { |
| 13 | public function __construct(public ?string $contextKey = null) |
| 14 | { |
| 15 | } |
| 16 | } |