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\Auditable;
5use Apie\Core\Attributes\RemovalCheck;
6use Apie\Core\Attributes\StaticCheck;
7use Apie\Core\Entities\EntityInterface;
8use Apie\IntegrationTests\Apie\TypeDemo\Identifiers\PrimitiveOnlyIdentifier;
9
10#[Auditable()]
11#[RemovalCheck(new StaticCheck())]
12final class PrimitiveOnly implements EntityInterface
13{
14    public ?string $stringField = null;
15
16    public ?int $integerField = null;
17
18    public ?float $floatingPoint = null;
19
20    public ?bool $booleanField = null;
21
22    public function __construct(
23        private PrimitiveOnlyIdentifier $id
24    ) {
25    }
26
27    public function getId(): PrimitiveOnlyIdentifier
28    {
29        return $this->id;
30    }
31}