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

isNumericField() protected method

Determines whether the given property refers to a numeric field.
protected isNumericField ( string $property, string $resourceClass ) : boolean
$property string
$resourceClass string
return boolean
    protected function isNumericField(string $property, string $resourceClass) : bool
    {
        $propertyParts = $this->splitPropertyParts($property);
        $metadata = $this->getNestedMetadata($resourceClass, $propertyParts['associations']);
        return isset(self::DOCTRINE_NUMERIC_TYPES[$metadata->getTypeOfField($propertyParts['field'])]);
    }