Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
CompositeValueObjectExample
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 getString
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getInteger
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getFloatingPoint
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getTrueOrFalse
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMixed
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getColor
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\Fixtures\ValueObjects;
3
4use Apie\Core\Attributes\Description;
5use Apie\Core\ValueObjects\CompositeValueObject;
6use Apie\Core\ValueObjects\Interfaces\ValueObjectInterface;
7use Apie\Fixtures\Enums\ColorEnum;
8
9#[Description('Example class used for a composite value object and different types')]
10class CompositeValueObjectExample implements ValueObjectInterface
11{
12    use CompositeValueObject;
13
14    private string $string;
15
16    private int $integer;
17
18    private float $floatingPoint;
19
20    private bool $trueOrFalse;
21
22    private mixed $mixed;
23
24    private ColorEnum $color;
25
26    public function getString(): string
27    {
28        return $this->string;
29    }
30
31    public function getInteger(): int
32    {
33        return $this->integer;
34    }
35
36    public function getFloatingPoint(): float
37    {
38        return $this->floatingPoint;
39    }
40
41    public function getTrueOrFalse(): bool
42    {
43        return $this->trueOrFalse;
44    }
45
46    public function getMixed(): mixed
47    {
48        return $this->mixed;
49    }
50
51    public function getColor(): ColorEnum
52    {
53        return $this->color;
54    }
55}