Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
1 / 1
NormalizedValue
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
3
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
 getFieldMetadata
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getNormalizedValue
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\Serializer\Context;
3
4use Apie\Core\Metadata\Fields\FieldInterface;
5use Apie\Core\Metadata\SetterInterface;
6
7class NormalizedValue
8{
9    public function __construct(
10        private readonly mixed $normalizedValue,
11        private readonly FieldInterface&SetterInterface $fieldMetadata
12    ) {
13    }
14
15    public function getFieldMetadata(): FieldInterface&SetterInterface
16    {
17        return $this->fieldMetadata;
18    }
19
20    public function getNormalizedValue(): mixed
21    {
22        return $this->normalizedValue;
23    }
24}