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
StringToReflectionMethod
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 ReflectionMethod;
6
7/**
8 * @implements ConverterInterface<string, ReflectionMethod>
9 */
10class StringToReflectionMethod implements ConverterInterface
11{
12    public function convert(string $input): ReflectionMethod
13    {
14        return ReflectionMethod::createFromMethodName($input);
15    }
16}