ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\NumericFilter::getType PHP Method

getType() private method

Gets the PHP type corresponding to this Doctrine type.
private getType ( string $doctrineType ) : string
$doctrineType string
return string
    private function getType(string $doctrineType) : string
    {
        if (DBALType::DECIMAL === $doctrineType) {
            return 'string';
        }
        if (DBALType::FLOAT === $doctrineType) {
            return 'float';
        }
        return 'int';
    }