Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| SpecialTypeOnly | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\IntegrationTests\Apie\TypeDemo\Resources; |
| 3 | |
| 4 | use Apie\Core\Attributes\Auditable; |
| 5 | use Apie\Core\Attributes\ClassStoreOptions; |
| 6 | use Apie\Core\Attributes\RemovalCheck; |
| 7 | use Apie\Core\Attributes\StaticCheck; |
| 8 | use Apie\Core\Entities\EntityInterface; |
| 9 | use Apie\Core\Enums\SortingOrder; |
| 10 | use Apie\IntegrationTests\Apie\TypeDemo\Identifiers\SpecialTypeOnlyIdentifier; |
| 11 | use BcMath\Number; |
| 12 | use GMP; |
| 13 | |
| 14 | #[Auditable(readAllEvents: true)] |
| 15 | #[RemovalCheck(new StaticCheck())] |
| 16 | #[ClassStoreOptions(defaultSortingOrder: SortingOrder::Ascending)] |
| 17 | final class SpecialTypeOnly implements EntityInterface |
| 18 | { |
| 19 | public ?Number $bcmathNumber = null; |
| 20 | |
| 21 | public ?GMP $gmp = null; |
| 22 | |
| 23 | public function __construct( |
| 24 | private SpecialTypeOnlyIdentifier $id |
| 25 | ) { |
| 26 | } |
| 27 | |
| 28 | public function getId(): SpecialTypeOnlyIdentifier |
| 29 | { |
| 30 | return $this->id; |
| 31 | } |
| 32 | } |