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