Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
PrimitiveOnly
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
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
 getId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\IntegrationTests\Apie\TypeDemo\Resources;
3
4use Apie\Core\Attributes\RemovalCheck;
5use Apie\Core\Attributes\StaticCheck;
6use Apie\Core\Entities\EntityInterface;
7use Apie\IntegrationTests\Apie\TypeDemo\Identifiers\PrimitiveOnlyIdentifier;
8
9#[RemovalCheck(new StaticCheck())]
10final class PrimitiveOnly implements EntityInterface
11{
12    public ?string $stringField = null;
13
14    public ?int $integerField = null;
15
16    public ?float $floatingPoint = null;
17
18    public ?bool $booleanField = null;
19
20    public function __construct(
21        private PrimitiveOnlyIdentifier $id
22    ) {
23    }
24
25    public function getId(): PrimitiveOnlyIdentifier
26    {
27        return $this->id;
28    }
29}