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
SetPrimitiveField
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
 getName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getInputValue
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Apie\IntegrationTests\Requests\JsonFields;
4
5class SetPrimitiveField implements JsonGetFieldInterface
6{
7    public function __construct(
8        private readonly string $name,
9        private readonly mixed $input
10    ) {
11    }
12
13    public function getName(): string
14    {
15        return $this->name;
16    }
17
18    public function getInputValue(): mixed
19    {
20        return $this->input;
21    }
22}