src/Infakt/Mapper/ReverseMapperTrait.php
public function reverseMapPrice(?float $price): ?int
    {
        if (null === $price) {
            return null;
        }

        if (0.00 === $price) {
            return 0;
        }

        return (int) str_replace('.', '', number_format($price, 2, '.', ''));
    }
public function reverseMapPrice(?float $price): ?int
    {
        if (null === $price) {
            return null;
        }

        if (0.00 === $price) {
            return 0;
        }

        return (int) str_replace('.', '', number_format($price, 2, '.', ''));
    }
public function reverseMapPrice ( ? float $ price ) : ? int { if ( null === $ price ) { return null ; } if ( 0.00 === $ price ) { return 0 ; } return ( int ) str_replace ( '.' , '' , number_format ( $ price , 2 , '.' , '' ) ) ; }
Maps price to string.

@param float|null $price

@return int|null
Maps price to string .