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
OrderIdentifier
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
 getReferenceFor
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Apie\IntegrationTests\Apie\TypeDemo\Identifiers;
4
5use Apie\Core\Attributes\ExampleValue;
6use Apie\Core\Identifiers\AutoIncrementInteger;
7use Apie\Core\Identifiers\IdentifierInterface;
8use Apie\IntegrationTests\Apie\TypeDemo\Resources\Order;
9use ReflectionClass;
10
11/**
12 * @implements IdentifierInterface<Order>
13 */
14#[ExampleValue(42)]
15class OrderIdentifier extends AutoIncrementInteger implements IdentifierInterface
16{
17    public static function getReferenceFor(): ReflectionClass
18    {
19        return new ReflectionClass(Order::class);
20    }
21}