Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
EnumToString
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 convert
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\StorageMetadata\Converters;
3
4use Apie\TypeConverter\ConverterInterface;
5use BackedEnum;
6use ReflectionType;
7
8/**
9 * @implements ConverterInterface<BackedEnum, string>
10 */
11class EnumToString implements ConverterInterface
12{
13    public function convert(BackedEnum $input, ?ReflectionType $wantedType): string
14    {
15        return $input->value;
16    }
17}